aboutsummaryrefslogtreecommitdiff
path: root/libbacktrace/configure.ac
diff options
context:
space:
mode:
authorIan Lance Taylor <iant@golang.org>2024-08-05 16:46:03 -0700
committerIan Lance Taylor <iant@golang.org>2024-08-05 16:46:03 -0700
commit3a51aaf5f4ccd3d2ed871727c16f9c6f9ed54e50 (patch)
tree8744adeeaa7ae617744275fbca92a4d17106de89 /libbacktrace/configure.ac
parentecb6153e3b9895c6e058646262c7c9e9c9c24a3c (diff)
downloadgcc-3a51aaf5f4ccd3d2ed871727c16f9c6f9ed54e50.zip
gcc-3a51aaf5f4ccd3d2ed871727c16f9c6f9ed54e50.tar.gz
gcc-3a51aaf5f4ccd3d2ed871727c16f9c6f9ed54e50.tar.bz2
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.
Diffstat (limited to 'libbacktrace/configure.ac')
-rw-r--r--libbacktrace/configure.ac3
1 files changed, 2 insertions, 1 deletions
diff --git a/libbacktrace/configure.ac b/libbacktrace/configure.ac
index bfd7f35..69eb202 100644
--- a/libbacktrace/configure.ac
+++ b/libbacktrace/configure.ac
@@ -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],