mirror of
https://github.com/ianlancetaylor/libbacktrace.git
synced 2026-03-28 21:19:06 +08:00
libbacktrace: avoid -Wpointer-arith errors
Based on patch from Kirill Müller. * configure.ac (ACX_PROG_CC_WARNING_OPTS): Add -Wpointer-arith. * pecoff.c (coff_add): Cast void pointers. * xcoff.c (xcoff_add): Likewise. * configure: Regenerate.
This commit is contained in:
@@ -145,7 +145,8 @@ AC_SUBST(EXTRA_FLAGS)
|
||||
ACX_PROG_CC_WARNING_OPTS([-W -Wall -Wwrite-strings -Wstrict-prototypes \
|
||||
-Wmissing-prototypes -Wold-style-definition \
|
||||
-Wmissing-format-attribute -Wcast-qual \
|
||||
-Wno-attributes -Wno-unknown-attributes],
|
||||
-Wno-attributes -Wno-unknown-attributes \
|
||||
-Wpointer-arith],
|
||||
[WARN_FLAGS])
|
||||
|
||||
AC_ARG_ENABLE([werror],
|
||||
|
||||
Reference in New Issue
Block a user