#16 Flat24: Unused parameters problem

closed-duplicate
nobody
5
2000-09-25
2000-06-29
No

Code snippet;

typdef enum {INIT_OK, INIT_FAILED} INITCODE;

INITCODE en_init(BOOL is_coldstart)

{
// PRevent unused variable warning
is_coldstart;
}

On compilation, this code results in an undefined global warning from the linker. Adding a function call to the function removes the warning.

DAVE
dmarples@iee.org

Discussion

  • Kevin Vigor

    Kevin Vigor - 2000-09-25
    • status: open --> closed-duplicate
     
  • Kevin Vigor

    Kevin Vigor - 2000-09-25

    duplicate of 108580

     

Log in to post a comment.

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:





No, thanks