#10 Unsed parameters

closed-fixed
Daniel Aarno
None
5
2007-09-03
2007-08-30
Pedro
No

When compiling with gcc with extra warnings (-Wextra), I get some unused parameter warnings:

MultiArg.h:457: warning: unused parameter ‘val’
MultiArg.h:468: warning: unused parameter ‘val’
MultiSwitchArg.h:182: warning: unused parameter ‘val’
MultiSwitchArg.h:189: warning: unused parameter ‘val’
StdOutput.h:154: warning: unused parameter ‘os’
ValueArg.h:484: warning: unused parameter ‘val’
ValueArg.h:493: warning: unused parameter ‘val’
UnlabeledMultiArg.h:271: warning: unused parameter ‘val’
UnlabeledMultiArg.h:279: warning: unused parameter ‘val’

-Wall doesn't report them though.

Discussion

  • Daniel Aarno
    Daniel Aarno
    2007-09-01

    • assigned_to: nobody --> macbishop
     
  • Daniel Aarno
    Daniel Aarno
    2007-09-01

    • status: open --> pending
     
  • Daniel Aarno
    Daniel Aarno
    2007-09-01

    Logged In: YES
    user_id=330479
    Originator: NO

    Actually this should have been fixed some time ago. Have you tried to reproduce this with the active source code from CVS? If you are able to reproduce with the latest source can you please let us know what compiler version you are using. There are some (safe) warnings if you really push the compiler warning level but with Wextra it should pass w.o any warnings.

     
  • Pedro
    Pedro
    2007-09-03

    • status: pending --> open
     
  • Pedro
    Pedro
    2007-09-03

    Logged In: YES
    user_id=1586098
    Originator: YES

    With the CVS source from last week I was still getting these:
    Arg.h:411: warning: unused parameter ‘vl’
    Arg.h:443: warning: unused parameter ‘sl’

    I did an update this morning and found no more warnings though.
    All seems to be fine now.

     
  • Daniel Aarno
    Daniel Aarno
    2007-09-03

    • status: open --> closed-fixed