]> git.ipfire.org Git - thirdparty/unbound.git/commitdiff
fix bug #424.
authorWouter Wijngaards <wouter@nlnetlabs.nl>
Fri, 20 Jan 2012 14:30:56 +0000 (14:30 +0000)
committerWouter Wijngaards <wouter@nlnetlabs.nl>
Fri, 20 Jan 2012 14:30:56 +0000 (14:30 +0000)
git-svn-id: file:///svn/unbound/trunk@2591 be551aaa-1e26-0410-a405-d3ace91eadb9

acx_nlnetlabs.m4
doc/Changelog

index 279b20fc29d471a74f99dffb45d229b38505a828..3a2e350823eed0e2ec46c65ca4161e365790bbbb 100644 (file)
@@ -2,7 +2,8 @@
 # Copyright 2009, Wouter Wijngaards, NLnet Labs.   
 # BSD licensed.
 #
-# Version 19
+# Version 20
+# 2012-01-20 Fix COMPILER_FLAGS_UNBOUND for gcc 4.6.2 assigned-not-used-warns.
 # 2011-12-05 Fix getaddrinfowithincludes on windows with fedora16 mingw32-gcc.
 #           Fix ACX_MALLOC for redefined malloc error.
 #           Fix GETADDRINFO_WITH_INCLUDES to add -lws2_32
@@ -259,6 +260,8 @@ int test() {
        a = getopt(2, opts, "a");
        a = isascii(32);
        str = gai_strerror(0);
+       if(str && t && tv.tv_usec && msg.msg_control)
+               a = 0;
        return a;
 }
 ], [CFLAGS="$CFLAGS $C99FLAG -D__EXTENSIONS__ -D_BSD_SOURCE -D_POSIX_C_SOURCE=200112 -D_XOPEN_SOURCE=600 -D_XOPEN_SOURCE_EXTENDED=1 -D_ALL_SOURCE"])
@@ -294,6 +297,8 @@ int test() {
        a = getopt(2, opts, "a");
        a = isascii(32);
        str = gai_strerror(0);
+       if(str && t && tv.tv_usec && msg.msg_control)
+               a = 0;
        return a;
 }
 ], [CFLAGS="$CFLAGS $C99FLAG -D__EXTENSIONS__ -D_BSD_SOURCE -D_POSIX_C_SOURCE=200112 -D_XOPEN_SOURCE=600 -D_ALL_SOURCE"])
@@ -360,6 +365,8 @@ int test() {
        const char* str = NULL;
         t = ctime_r(&time, buf);
        str = gai_strerror(0);
+       if(t && str)
+               a = 0;
         return a;
 }
 ], [CFLAGS="$CFLAGS -D_POSIX_C_SOURCE=200112"])
@@ -386,6 +393,8 @@ int test() {
         srandom(32);
         a = getopt(2, opts, "a");
         a = isascii(32);
+       if(tv.tv_usec)
+               a = 0;
         return a;
 }
 ], [CFLAGS="$CFLAGS -D__EXTENSIONS__"])
index 327a0eb07bbaf5629d10bf80105c0e85402d2833..d465f71ba742abe3e5a5f32314f27b94f334eaa8 100644 (file)
@@ -1,3 +1,6 @@
+20 January 2012: Wouter
+       - Fix bug #424: compile on OpenIndiana OS with gcc 4.6.2.
+
 19 January 2012: Wouter
        - Fix to write key files completely to a temporary file, and if that
          succeeds, replace the real key file.  So failures leave a useful file.