diff options
author | Carlos O'Donell <carlos@redhat.com> | 2014-02-06 11:12:48 -0500 |
---|---|---|
committer | Carlos O'Donell <carlos@redhat.com> | 2014-02-06 11:18:51 -0500 |
commit | 3bfff2edbef578746211ba231f3942efffd38f86 (patch) | |
tree | 27829eb3718ecb278c8190a916eeea1546a8aa8f /ChangeLog | |
parent | ee7cc3853761fc00b6bbcdc09b3d8a56695dd7a6 (diff) | |
download | glibc-3bfff2edbef578746211ba231f3942efffd38f86.zip glibc-3bfff2edbef578746211ba231f3942efffd38f86.tar.gz glibc-3bfff2edbef578746211ba231f3942efffd38f86.tar.bz2 |
BZ #16529: Fix pedantic warning with netinet/in.h.
When compiling with pedantic the following warning is seen:
gcc -Wall -pedantic -O0 -o test test.c
In file included from test.c:3:0:
/path/inet/netinet/in.h:111:21: warning: comma at end of \
enumerator list [-Wpedantic]
IPPROTO_MH = 135, /* IPv6 mobility header. */
^
It is valid C99 to have a trailing comma after the last item in
an enumeration. However it is not valid C90. If possible glibc
attempts to keep all headers C90 + long long without requiring
C99 features. In this case it's easy to fix the headers and it
removes the warning seem with -pedantic.
Diffstat (limited to 'ChangeLog')
-rw-r--r-- | ChangeLog | 5 |
1 files changed, 5 insertions, 0 deletions
@@ -1,3 +1,8 @@ +2014-02-06 Carlos O'Donell <carlos@redhat.com> + + [BZ #16529] + * inet/netinet/in.h: Remove comma after IPPROTO_MH. + 2014-02-06 Siddhesh Poyarekar <siddhesh@redhat.com> * manual/contrib.texi: Update entry for Carlos O'Donell, |