This is the mail archive of the
gdb@sourceware.org
mailing list for the GDB project.
Re: -Wformat and the like (was: gdb-7.0 on osx)
- From: Tobias Hahn <tobias dot hahn at ableton dot com>
- To: gdb at sourceware dot org
- Date: Fri, 9 Oct 2009 10:40:04 +0200
- Subject: Re: -Wformat and the like (was: gdb-7.0 on osx)
- References: <847995BD-73DF-46CD-AFDE-25AB8A5A6E6D@ableton.com>
By the way: Why do the makefiles include -Wformat, -Wformat-nonliteral
and -Werror? I agree that this would be a best pratice if the code
were clean, but with literally thousands of these kinds of errors it
just gives me as a user a hard time trying to get a build.
Right now, I am trying find the correct place to patch the Makefiles
since it adds -Wformat-nonliteral explicitely, overriding my -Wno-
format-nonliteral, which breaks a ton of stuff.
Am I the only one having these problems? Are there some magic secret
configure options to get "configure && make" to produce a build?
I am using the daily snapshot gdb-7.0.50.20091009.
Best, Tobias
Am 08.10.2009 um 17:57 schrieb Tobias Hahn:
I cannot get gdb-7.0 to debug my executables under 10.6. I have
built it using
$ ../gdb-7.0/configure --build=x86_64-apple-darwin10 CFLAGS="-g -O2 -
Wno-format"
Ableton AG, Sitz Berlin, Amtsgericht Berlin-Charlottenburg, HRB 72838
Vorstand: Gerhard Behles, Jan Bohl, Bernd Roggendorf
Vorsitzender des Aufsichtsrats: Uwe Struck