diff options
author | Ian Lance Taylor <iant@golang.org> | 2024-08-05 16:46:03 -0700 |
---|---|---|
committer | Ian Lance Taylor <iant@golang.org> | 2024-08-05 16:46:03 -0700 |
commit | 3a51aaf5f4ccd3d2ed871727c16f9c6f9ed54e50 (patch) | |
tree | 8744adeeaa7ae617744275fbca92a4d17106de89 /libbacktrace/configure.ac | |
parent | ecb6153e3b9895c6e058646262c7c9e9c9c24a3c (diff) | |
download | gcc-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.ac | 3 |
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], |