[Bug 6068] Enhancement: Add warning -Wcast-align for GCC

bugzilla at busybox.net bugzilla at busybox.net
Tue Mar 5 21:46:20 UTC 2013


https://bugs.busybox.net/show_bug.cgi?id=6068

--- Comment #7 from Jeffrey Walton <noloader at gmail.com> 2013-03-05 21:47:02 UTC ---
clang -c libc/misc/locale/localeconv.c -o libc/misc/locale/localeconv.os
-include ./include/libc-symbols.h -Wall -Wstrict-prototypes -Wstrict-aliasing
-Wformat=2 -Wmissing-noreturn -Wmissing-format-attribute -Wmissing-prototypes
-Wmissing-declarations -Wnested-externs -Wnonnull -Wold-style-definition
-Wshadow -Wundef -Wdeclaration-after-statement -funsigned-char -fno-builtin
-fno-asm -std=gnu99 -fno-stack-protector -nostdinc -I./include -I./include -I.
-I./libc/sysdeps/linux -I./libc/sysdeps/linux/x86_64  -Os -funit-at-a-time
-fmerge-all-constants -fstrict-aliasing -Wcast-align -fno-common
-I./libc/sysdeps/linux/common -I/usr/src/linux-headers-3.2.0-38/include/
-isystem /usr/local/bin/../lib/clang/3.1/include-fixed -isystem
/usr/local/bin/../lib/clang/3.1/include -DNDEBUG -fPIC     -MT
libc/misc/locale/localeconv.os -MD -MP -MF libc/misc/locale/.localeconv.os.dep



In file included from libc/misc/locale/localeconv.c:8:
libc/misc/locale/locale.c:304:4: warning: cast from 'char *' to 'char **'
      increases required alignment from 1 to 8 [-Wcast-align]
        *((char **)p) = (char *) decpt;
          ^~~~~~~~~~
libc/misc/locale/locale.c:307:5: warning: cast from 'char *' to 'char **'
      increases required alignment from 1 to 8 [-Wcast-align]
                *((char **)p) = (char *) (decpt+1);
                  ^~~~~~~~~~
2 warnings generated.

-- 
Configure bugmail: https://bugs.busybox.net/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.


More information about the uClibc-cvs mailing list