From dd0752e69f33c6092a940091b8a332b18e6be76d Mon Sep 17 00:00:00 2001 From: Taeyeon Mori Date: Sat, 12 Apr 2014 20:36:22 +0200 Subject: [PATCH] [Clang Warnings] Silence Pack200 unused variable variable warnings They're caused by a big define-everything-you-ever-need macro --- depends/pack200/src/coding.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/depends/pack200/src/coding.cpp b/depends/pack200/src/coding.cpp index 3e311131..6bd17a3c 100644 --- a/depends/pack200/src/coding.cpp +++ b/depends/pack200/src/coding.cpp @@ -44,6 +44,9 @@ extern coding basic_codings[]; +// CODING_PRIVATE causes a lot of them +#pragma GCC diagnostic ignored "-Wunused-variable" + #define CODING_PRIVATE(spec) \ int spec_ = spec; \ int B = CODING_B(spec_); \