From: Wouter Wijngaards Date: Tue, 20 Jun 2017 07:05:30 +0000 (+0000) Subject: - Fix warning in pythonmod under clang compiler. X-Git-Tag: release-1.6.4rc1~1 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=1f6a7da0b03a95d35716558683dd2a564df73ec0;p=thirdparty%2Funbound.git - Fix warning in pythonmod under clang compiler. git-svn-id: file:///svn/unbound/trunk@4236 be551aaa-1e26-0410-a405-d3ace91eadb9 --- diff --git a/doc/Changelog b/doc/Changelog index 49674aa11..25e21cfec 100644 --- a/doc/Changelog +++ b/doc/Changelog @@ -1,3 +1,6 @@ +20 June 2017: Wouter + - Fix warning in pythonmod under clang compiler. + 16 June 2017: Ralph - Fix #1277: disable domain ratelimit by setting value to 0. diff --git a/pythonmod/pythonmod.c b/pythonmod/pythonmod.c index dde7e54b2..35a20434b 100644 --- a/pythonmod/pythonmod.c +++ b/pythonmod/pythonmod.c @@ -41,8 +41,10 @@ /* ignore the varargs unused warning from SWIGs internal vararg support */ #ifdef __GNUC__ #pragma GCC diagnostic ignored "-Wunused-parameter" +#ifndef __clang__ #pragma GCC diagnostic ignored "-Wunused-but-set-variable" #endif +#endif #include "config.h" #include "sldns/sbuffer.h"