2003-07-22 Andrew Cagney <cagney@redhat.com>
* configure.in (build_warnings): Add -Wformat-nonliteral. * configure: Re-generate. 2003-07-22 Andrew Cagney <cagney@redhat.com> * gdbint.texinfo (Coding): Add -Wformat-nonliteral to -Werror list.
This commit is contained in:
parent
c193f044f3
commit
153721e664
@ -1,3 +1,8 @@
|
|||||||
|
2003-07-22 Andrew Cagney <cagney@redhat.com>
|
||||||
|
|
||||||
|
* configure.in (build_warnings): Add -Wformat-nonliteral.
|
||||||
|
* configure: Re-generate.
|
||||||
|
|
||||||
2003-07-22 Elena Zannoni <ezannoni@redhat.com>
|
2003-07-22 Elena Zannoni <ezannoni@redhat.com>
|
||||||
|
|
||||||
dwarf2loc.c (locexpr_describe_location): Fix typo.
|
dwarf2loc.c (locexpr_describe_location): Fix typo.
|
||||||
|
2
gdb/configure
vendored
2
gdb/configure
vendored
@ -8861,7 +8861,7 @@ fi
|
|||||||
# NOTE: If you add to this list, remember to update
|
# NOTE: If you add to this list, remember to update
|
||||||
# gdb/doc/gdbint.texinfo.
|
# gdb/doc/gdbint.texinfo.
|
||||||
build_warnings="-Wimplicit -Wreturn-type -Wcomment -Wtrigraphs \
|
build_warnings="-Wimplicit -Wreturn-type -Wcomment -Wtrigraphs \
|
||||||
-Wformat -Wparentheses -Wpointer-arith -Wuninitialized"
|
-Wformat -Wparentheses -Wpointer-arith -Wuninitialized -Wformat-nonliteral"
|
||||||
# Up for debate: -Wswitch -Wcomment -trigraphs -Wtrigraphs
|
# Up for debate: -Wswitch -Wcomment -trigraphs -Wtrigraphs
|
||||||
# -Wunused-function -Wunused-label -Wunused-variable -Wunused-value
|
# -Wunused-function -Wunused-label -Wunused-variable -Wunused-value
|
||||||
# -Wchar-subscripts -Wtraditional -Wshadow -Wcast-qual
|
# -Wchar-subscripts -Wtraditional -Wshadow -Wcast-qual
|
||||||
|
@ -976,7 +976,7 @@ AC_SUBST(TARGET_SYSTEM_ROOT_DEFINE)
|
|||||||
# NOTE: If you add to this list, remember to update
|
# NOTE: If you add to this list, remember to update
|
||||||
# gdb/doc/gdbint.texinfo.
|
# gdb/doc/gdbint.texinfo.
|
||||||
build_warnings="-Wimplicit -Wreturn-type -Wcomment -Wtrigraphs \
|
build_warnings="-Wimplicit -Wreturn-type -Wcomment -Wtrigraphs \
|
||||||
-Wformat -Wparentheses -Wpointer-arith -Wuninitialized"
|
-Wformat -Wparentheses -Wpointer-arith -Wuninitialized -Wformat-nonliteral"
|
||||||
# Up for debate: -Wswitch -Wcomment -trigraphs -Wtrigraphs
|
# Up for debate: -Wswitch -Wcomment -trigraphs -Wtrigraphs
|
||||||
# -Wunused-function -Wunused-label -Wunused-variable -Wunused-value
|
# -Wunused-function -Wunused-label -Wunused-variable -Wunused-value
|
||||||
# -Wchar-subscripts -Wtraditional -Wshadow -Wcast-qual
|
# -Wchar-subscripts -Wtraditional -Wshadow -Wcast-qual
|
||||||
|
@ -1,3 +1,8 @@
|
|||||||
|
2003-07-22 Andrew Cagney <cagney@redhat.com>
|
||||||
|
|
||||||
|
* gdbint.texinfo (Coding): Add -Wformat-nonliteral to -Werror
|
||||||
|
list.
|
||||||
|
|
||||||
2003-06-28 Daniel Jacobowitz <drow@mvista.com>
|
2003-06-28 Daniel Jacobowitz <drow@mvista.com>
|
||||||
|
|
||||||
* gdb.texinfo (Logging output): New chapter.
|
* gdb.texinfo (Logging output): New chapter.
|
||||||
|
@ -5009,8 +5009,9 @@ that use register windows.
|
|||||||
@item -Wtrigraphs
|
@item -Wtrigraphs
|
||||||
|
|
||||||
@item -Wformat
|
@item -Wformat
|
||||||
|
@itemx -Wformat-nonliteral
|
||||||
Since @value{GDBN} uses the @code{format printf} attribute on all
|
Since @value{GDBN} uses the @code{format printf} attribute on all
|
||||||
@code{printf} like functions this checks not just @code{printf} calls
|
@code{printf} like functions these check not just @code{printf} calls
|
||||||
but also calls to functions such as @code{fprintf_unfiltered}.
|
but also calls to functions such as @code{fprintf_unfiltered}.
|
||||||
|
|
||||||
@item -Wparentheses
|
@item -Wparentheses
|
||||||
|
Loading…
x
Reference in New Issue
Block a user