This is the mail archive of the
binutils@sources.redhat.com
mailing list for the binutils project.
Re: prototypes ld/
Alan Modra <amodra@bigpond.net.au> writes:
> ld/ChangeLog
> * emultempl/elf32.em (output_prev_sec_find): Add missing prototype.
>
> Applying to mainline.
Shouldn't we add -Wstrict-prototypes to WARN_CFLAGS to catch these?
Here's an untested patch for gas. If this is ok, I can send similar
patches for binutils, bfd and ld.
Andreas
2001-08-09 Andreas Jaeger <aj@suse.de>
* configure.in: Add -Wstrict-prototypes.
============================================================
Index: gas/configure.in
--- gas/configure.in 2001/07/14 14:44:39 1.72
+++ gas/configure.in 2001/08/09 14:50:09
@@ -44,7 +44,7 @@ esac])dnl
using_cgen=no
-build_warnings="-W -Wall"
+build_warnings="-W -Wall -Wstrict-prototypes"
AC_ARG_ENABLE(build-warnings,
[ --enable-build-warnings Enable build-time compiler warnings if gcc is used],
[case "${enableval}" in
--
Andreas Jaeger
SuSE Labs aj@suse.de
private aj@arthur.inka.de
http://www.suse.de/~aj
PGP signature