arrfab / rpms / glibc

Forked from rpms/glibc 4 years ago
Clone

Blame SOURCES/glibc-rh1331283-1.patch

147e83
commit 3bfff2edbef578746211ba231f3942efffd38f86
147e83
Author: Carlos O'Donell <carlos@redhat.com>
147e83
Date:   Thu Feb 6 11:12:48 2014 -0500
147e83
147e83
    BZ #16529: Fix pedantic warning with netinet/in.h.
147e83
    
147e83
    When compiling with pedantic the following warning is seen:
147e83
    
147e83
    gcc -Wall -pedantic -O0 -o test test.c
147e83
    In file included from test.c:3:0:
147e83
    /path/inet/netinet/in.h:111:21: warning: comma at end of \
147e83
    enumerator list [-Wpedantic]
147e83
         IPPROTO_MH = 135,      /* IPv6 mobility header.  */
147e83
                         ^
147e83
    
147e83
    It is valid C99 to have a trailing comma after the last item in
147e83
    an enumeration. However it is not valid C90. If possible glibc
147e83
    attempts to keep all headers C90 + long long without requiring
147e83
    C99 features. In this case it's easy to fix the headers and it
147e83
    removes the warning seem with -pedantic.
147e83
147e83
diff --git a/inet/netinet/in.h b/inet/netinet/in.h
147e83
index ad9ce6c..d8d8e53 100644
147e83
--- a/inet/netinet/in.h
147e83
+++ b/inet/netinet/in.h
147e83
@@ -108,7 +108,7 @@ enum
147e83
 #define IPPROTO_NONE		IPPROTO_NONE
147e83
     IPPROTO_DSTOPTS = 60,  /* IPv6 destination options.  */
147e83
 #define IPPROTO_DSTOPTS		IPPROTO_DSTOPTS
147e83
-    IPPROTO_MH = 135,      /* IPv6 mobility header.  */
147e83
+    IPPROTO_MH = 135       /* IPv6 mobility header.  */
147e83
 #define IPPROTO_MH		IPPROTO_MH
147e83
   };
147e83
 #endif /* !__USE_KERNEL_IPV6_DEFS */