Skip to contentSkip to conversation

New compiler warning: 2.6.4->2.6.5

DISCUSSION John Cherry 3 participants 5 messages Apr 6, 2004

lore
Share & tools
lore
#0 lore raw

9 new compiler warnings between 2.6.4 and 2.6.5.

gcc: 3.2.2
arch: i386

drivers/acpi/events/evmisc.c:143: warning: too many arguments for format drivers/char/applicom.c:523:2: warning: #warning "Je suis stupide. DW. - copy*user in cli"
drivers/char/watchdog/cpu5wdt.c:305: warning: initialization discards qualifiers from pointer target type drivers/char/watchdog/cpu5wdt.c:305: warning: return discards qualifiers from pointer target type drivers/media/dvb/frontends/tda1004x.c:191: warning: `errno' defined but not used
drivers/pcmcia/i82365.c:71: warning: version' defined but not used drivers/pcmcia/tcic.c:64: warning: version' defined but not used sound/isa/wavefront/wavefront_synth.c:1923: warning: `errno' defined but not used
sound/oss/wavfront.c:2498: warning: `errno' defined but not used

John

#1 lore raw

On 05 Apr 2004 20:04:09 -0700 John Cherry <[email protected]> wrote:

| 9 new compiler warnings between 2.6.4 and 2.6.5.
| 
| gcc: 3.2.2
| arch: i386
| 
| drivers/acpi/events/evmisc.c:143: warning: too many arguments for format
| drivers/char/applicom.c:523:2: warning: #warning "Je suis stupide. DW. -
| copy*user in cli"
| drivers/char/watchdog/cpu5wdt.c:305: warning: initialization discards
| qualifiers from pointer target type
| drivers/char/watchdog/cpu5wdt.c:305: warning: return discards qualifiers
| from pointer target type
| drivers/media/dvb/frontends/tda1004x.c:191: warning: `errno' defined but
| not used
| drivers/pcmcia/i82365.c:71: warning: `version' defined but not used
| drivers/pcmcia/tcic.c:64: warning: `version' defined but not used
| sound/isa/wavefront/wavefront_synth.c:1923: warning: `errno' defined but
| not used
| sound/oss/wavfront.c:2498: warning: `errno' defined but not used

hi john,

i didn't check all of these, but the #warning in applicom.c (Je suis stupide.) has been around forever and it's listed in both your 2.6.4 and 2.6.5 warning logs:

http://developer.osdl.org/cherry/compile/2.6/linux-2.6.4.results/2.6.4.allmodconfig.modules.txt:
drivers/char/applicom.c:522:2: warning: #warning "Je suis stupide. DW. - copy*user in cli"

and
http://developer.osdl.org/cherry/compile/2.6/linux-2.6.5.results/2.6.5.allmodconfig.modules.txt:
drivers/char/applicom.c:523:2: warning: #warning "Je suis stupide. DW. - copy*user in cli"

Ooh, was it the line number change that made it look new???

--
~Randy

#2 lore raw
In reply to John Cherry

Hi John,

Em 05 Apr 2004 20:04:09 -0700
John Cherry <[email protected]> escreveu:

| 9 new compiler warnings between 2.6.4 and 2.6.5.
| 
| gcc: 3.2.2
| arch: i386
| 
| drivers/acpi/events/evmisc.c:143: warning: too many arguments for format
| drivers/char/applicom.c:523:2: warning: #warning "Je suis stupide. DW. -
| copy*user in cli"
| drivers/char/watchdog/cpu5wdt.c:305: warning: initialization discards
| qualifiers from pointer target type
| drivers/char/watchdog/cpu5wdt.c:305: warning: return discards qualifiers
| from pointer target type
| drivers/media/dvb/frontends/tda1004x.c:191: warning: `errno' defined but
| not used
| drivers/pcmcia/i82365.c:71: warning: `version' defined but not used
| drivers/pcmcia/tcic.c:64: warning: `version' defined but not used
| sound/isa/wavefront/wavefront_synth.c:1923: warning: `errno' defined but
| not used
| sound/oss/wavfront.c:2498: warning: `errno' defined but not used

I fixed the ''errno''s warnings, the patches are in -mm.

PS: I think they are not new.

Signature · 3 lines
Luiz Fernando N. Capitulino
<[email protected]>
<http://www.telecentros.sp.gov.br>
#3 lore raw
Quoted 25 lines · Luiz Fernando N. Capitulino

Hi John,

Em 05 Apr 2004 20:04:09 -0700
John Cherry <[email protected]> escreveu:

| 9 new compiler warnings between 2.6.4 and 2.6.5.
| 
| gcc: 3.2.2
| arch: i386
| 
| drivers/acpi/events/evmisc.c:143: warning: too many arguments for format
| drivers/char/applicom.c:523:2: warning: #warning "Je suis stupide. DW. -
| copy*user in cli"
| drivers/char/watchdog/cpu5wdt.c:305: warning: initialization discards
| qualifiers from pointer target type
| drivers/char/watchdog/cpu5wdt.c:305: warning: return discards qualifiers
| from pointer target type
| drivers/media/dvb/frontends/tda1004x.c:191: warning: `errno' defined but
| not used
| drivers/pcmcia/i82365.c:71: warning: `version' defined but not used
| drivers/pcmcia/tcic.c:64: warning: `version' defined but not used
| sound/isa/wavefront/wavefront_synth.c:1923: warning: `errno' defined but
| not used
| sound/oss/wavfront.c:2498: warning: `errno' defined but not used
Quoted 1 line

I fixed the ''errno''s warnings, the patches are in -mm.

Great. Once they are merged, the errno warnings will be gone.

Quoted 2 lines

PS: I think they are not new.

They were new relative to 2.6.4. Check out the 2.6.4 build results:

http://developer.osdl.org/cherry/compile/2.6/linux-2.6.4.results/

John

#4 lore raw

Em Tue, 06 Apr 2004 13:59:48 -0700
John Cherry <[email protected]> escreveu:

| > | 9 new compiler warnings between 2.6.4 and 2.6.5.
| > | 
| > | gcc: 3.2.2
| > | arch: i386
| > | 
| > | drivers/acpi/events/evmisc.c:143: warning: too many arguments for format
| > | drivers/char/applicom.c:523:2: warning: #warning "Je suis stupide. DW. -
| > | copy*user in cli"
| > | drivers/char/watchdog/cpu5wdt.c:305: warning: initialization discards
| > | qualifiers from pointer target type
| > | drivers/char/watchdog/cpu5wdt.c:305: warning: return discards qualifiers
| > | from pointer target type
| > | drivers/media/dvb/frontends/tda1004x.c:191: warning: `errno' defined but
| > | not used
| > | drivers/pcmcia/i82365.c:71: warning: `version' defined but not used
| > | drivers/pcmcia/tcic.c:64: warning: `version' defined but not used
| > | sound/isa/wavefront/wavefront_synth.c:1923: warning: `errno' defined but
| > | not used
| > | sound/oss/wavfront.c:2498: warning: `errno' defined but not used
| > 
| >  I fixed the ''errno''s warnings, the patches are in -mm.
| 
| Great.  Once they are merged, the errno warnings will be gone.
| 
| > 
| > PS: I think they are not new.
| 
| They were new relative to 2.6.4.  Check out the 2.6.4 build results:
| 
|  http://developer.osdl.org/cherry/compile/2.6/linux-2.6.4.results/

Oh yes, they are not new in -mm, where the time goes fast. :-)

Signature · 3 lines
Luiz Fernando N. Capitulino
<[email protected]>
<http://www.telecentros.sp.gov.br>