Re: [Bug-gnubg] a warning from GCC 3.4.1

From:

Jon Kinsey

Subject:

Re: [Bug-gnubg] a warning from GCC 3.4.1

Date:

Wed, 15 Sep 2004 14:04:22 +0100

User-agent:

Mozilla Thunderbird 0.7.2 (Windows/20040707)

Øystein O Johansen wrote:

Hi,
I notice that GCC 3.4.1 gives a deprecation warning when I'm compiling
neuralnet.c
gcc -mms-bitfields -Os -Wall -DHAVE_CONFIG_H -I. -I.. -c -o neuralnet.o
neura
lnet.c
neuralnet.c: In function `NeuralNetCreateDirect':
neuralnet.c:389: warning: use of cast expressions as lvalues is deprecated
neuralnet.c:390: warning: use of cast expressions as lvalues is deprecated
neuralnet.c:391: warning: use of cast expressions as lvalues is deprecated
neuralnet.c:392: warning: use of cast expressions as lvalues is deprecated
neuralnet.c:394: warning: use of cast expressions as lvalues is deprecated
neuralnet.c:395: warning: use of cast expressions as lvalues is deprecated
neuralnet.c:406: warning: use of cast expressions as lvalues is deprecated
neuralnet.c:408: warning: use of cast expressions as lvalues is deprecated
neuralnet.c:410: warning: use of cast expressions as lvalues is deprecated
neuralnet.c:412: warning: use of cast expressions as lvalues is deprecated
I must say, I don't care much about this warnings. Should I care?

Probably not, I think the ++ operator is causing the warning. Try this
code instead: