Red Hat Bugzilla – Bug 834447
htons() gives warning if compiled with gcc -Wconversion [due to generic byteswap, non-x86/x86_64 platforms]
Last modified: 2012-06-21 19:29:54 EDT
glibc fixed a bug in 2010 in which htons() would give a conversion warning when compiled with -Wconversion due to the implementation of the byte-swapping functions. Unfortunately, this fix was only for x86/x86_64 platforms. The fix has now been updated to include the generic byteswap functions.
Please apply this patch to the glibc in Fedora.
For reference, please see http://sourceware.org/bugzilla/show_bug.cgi?id=12194
*** Bug 834449 has been marked as a duplicate of this bug. ***
*** Bug 834450 has been marked as a duplicate of this bug. ***
I just resynced with the upstream sources which include a fix for this problem.