gnustep-dev
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: GUI with gcc 4.6.0


From: Fred Kiefer
Subject: Re: GUI with gcc 4.6.0
Date: Mon, 23 May 2011 00:13:43 +0200
User-agent: Mozilla/5.0 (X11; U; Linux x86_64; de; rv:1.9.2.17) Gecko/20110414 SUSE/3.1.10 Thunderbird/3.1.10

On 22.05.2011 01:50, Germán Arias wrote:
Compiling GUI with gcc 4.6.0 I get the error:

Making all for tool say...
  Compiling file say.m ...
say.m: In function 'main':
say.m:17:12: error: defines the variable 'outfile' but not used
[-Werror=unused-but-set-variable]
cc1obj:
all warnings are treated as errors

make[5]: *** [obj/say.obj/say.m.o] Error 1
make[4]: *** [internal-tool-all_] Error 2
make[3]: *** [say.all.tool.variables] Error 2
make[2]: *** [internal-all] Error 2
make[1]: *** [internal-all] Error 2
make: *** [internal-all] Error 2

There are to angles to this problem. One is of course that, as gcc reports, we have an unused variable in our code, which we should safely remove. The other is that gcc treats warnings as errors and fails because of this. I don't think that this is the standard even for gcc 4.6. You should find out where this is set and remove that setting.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]