* Help on finding out unused arguments of functions
@ 2005-05-27 9:49 Mohammad Saifullah
2005-05-27 11:35 ` Eljay Love-Jensen
0 siblings, 1 reply; 4+ messages in thread
From: Mohammad Saifullah @ 2005-05-27 9:49 UTC (permalink / raw)
To: gcc-help
Dear All,
Greetings!
I need to find out unused arguments of my functions using 'gcc'. Can
anyone tell me what is the
option to be given to gcc for that?
Regards,
Saif
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: Help on finding out unused arguments of functions
2005-05-27 9:49 Help on finding out unused arguments of functions Mohammad Saifullah
@ 2005-05-27 11:35 ` Eljay Love-Jensen
2005-05-27 11:43 ` Mohammad Saifullah
0 siblings, 1 reply; 4+ messages in thread
From: Eljay Love-Jensen @ 2005-05-27 11:35 UTC (permalink / raw)
To: Mohammad Saifullah, gcc-help
Hi Saif,
Do any of these do what you want:
-Wunused-value
-Wunused-variable
-Wunused-parameter
-Wunused-label
-Wunused-function
-Wunused
HTH,
--Eljay
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: Help on finding out unused arguments of functions
2005-05-27 11:35 ` Eljay Love-Jensen
@ 2005-05-27 11:43 ` Mohammad Saifullah
2005-05-27 11:59 ` Eljay Love-Jensen
0 siblings, 1 reply; 4+ messages in thread
From: Mohammad Saifullah @ 2005-05-27 11:43 UTC (permalink / raw)
To: Eljay Love-Jensen; +Cc: gcc-help, arturas.moskvinas
Thanks a lot Arturas and Eljay. Is '-Wunused-pointer' available or any
workaround for that?
But if i use '-Wall' on 'mips_fp_be-gcc', it is not giving unused
parameters, any idea please?
Regards,
Saif
Eljay Love-Jensen wrote:
>Hi Saif,
>
>Do any of these do what you want:
>-Wunused-value
>-Wunused-variable
>-Wunused-parameter
>-Wunused-label
>-Wunused-function
>-Wunused
>
>HTH,
>--Eljay
>
>
>
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: Help on finding out unused arguments of functions
2005-05-27 11:43 ` Mohammad Saifullah
@ 2005-05-27 11:59 ` Eljay Love-Jensen
0 siblings, 0 replies; 4+ messages in thread
From: Eljay Love-Jensen @ 2005-05-27 11:59 UTC (permalink / raw)
To: Mohammad Saifullah; +Cc: gcc-help
Hi Saif,
-Wall is somewhat of a misnomer. It does not enable all warnings, it "Enable most warning messages".
I wish there was a "-WALL" or "-Wall!" or "-Wall-dammit" to enable *ALL* possible warnings (perhaps with the exception of threshold specified warnings, such as -Wlarger-than-<NUMBER>), and then selectively disable undesired warnings, e.g. -Wno-effc++ or whatever. But alas...
Sincerely,
--Eljay
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2005-05-27 11:59 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-05-27 9:49 Help on finding out unused arguments of functions Mohammad Saifullah
2005-05-27 11:35 ` Eljay Love-Jensen
2005-05-27 11:43 ` Mohammad Saifullah
2005-05-27 11:59 ` Eljay Love-Jensen
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).