projects
/
deliverable
/
binutils-gdb.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fix indentation (and clang warning) in c-lang.c
[deliverable/binutils-gdb.git]
/
gdb
/
warning.m4
diff --git
a/gdb/warning.m4
b/gdb/warning.m4
index dd338493f9eee8ffb50d88143968c0e5b96f2ab1..c9e64a1836a8e01339ca4e3c3d689657ff9ef92c 100644
(file)
--- a/
gdb/warning.m4
+++ b/
gdb/warning.m4
@@
-1,5
+1,5
@@
dnl Autoconf configure script for GDB, the GNU debugger.
dnl Autoconf configure script for GDB, the GNU debugger.
-dnl Copyright (C) 1995-201
8
Free Software Foundation, Inc.
+dnl Copyright (C) 1995-201
9
Free Software Foundation, Inc.
dnl
dnl This file is part of GDB.
dnl
dnl
dnl This file is part of GDB.
dnl
@@
-45,7
+45,11
@@
build_warnings="-Wall -Wpointer-arith \
-Wno-error=deprecated-register \
-Wsuggest-override \
-Wimplicit-fallthrough=3 \
-Wno-error=deprecated-register \
-Wsuggest-override \
-Wimplicit-fallthrough=3 \
--Wduplicated-cond"
+-Wduplicated-cond \
+-Wshadow=local \
+-Wdeprecated-copy \
+-Wdeprecated-copy-dtor \
+-Wredundant-move"
case "${host}" in
*-*-mingw32*)
case "${host}" in
*-*-mingw32*)
@@
-58,7
+62,10
@@
case "${host}" in
build_warnings="$build_warnings -Wno-unknown-pragmas"
# Solaris 11 <unistd.h> marks vfork deprecated.
build_warnings="$build_warnings -Wno-deprecated-declarations" ;;
build_warnings="$build_warnings -Wno-unknown-pragmas"
# Solaris 11 <unistd.h> marks vfork deprecated.
build_warnings="$build_warnings -Wno-deprecated-declarations" ;;
- *) build_warnings="$build_warnings -Wformat-nonliteral" ;;
+ *)
+ # Note that gcc requires -Wformat for -Wformat-nonliteral to work,
+ # but there's a special case for this below.
+ build_warnings="$build_warnings -Wformat-nonliteral" ;;
esac
AC_ARG_ENABLE(build-warnings,
esac
AC_ARG_ENABLE(build-warnings,
@@
-106,6
+113,12
@@
then
case $w in
-Wno-*)
wtest=`echo $w | sed 's/-Wno-/-W/g'` ;;
case $w in
-Wno-*)
wtest=`echo $w | sed 's/-Wno-/-W/g'` ;;
+ -Wformat-nonliteral)
+ # gcc requires -Wformat before -Wformat-nonliteral
+ # will work, so stick them together.
+ w="-Wformat $w"
+ wtest="$w"
+ ;;
*)
wtest=$w ;;
esac
*)
wtest=$w ;;
esac
This page took
0.024958 seconds
and
4
git commands to generate.