#15 Flat24: Unused parameters problem

closed-fixed
Kevin Vigor
5
2013-05-25
2000-06-29
Dave Marples
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-10-13

    Fix is checked into SDCCopt.c; it is currently ifdef'd out (with the POST_2_2_1 symbol). Will remove ifdef (and thus enable the fix) once 2.2.1 is released (don't want to include this potentially destablising code in 2.2.1).

     
  • Kevin Vigor
    Kevin Vigor
    2000-10-13

    • assigned_to: nobody --> kvigor
    • milestone: 100100 --> known_bugs
    • status: open --> open-later
     
  • Kevin Vigor
    Kevin Vigor
    2000-10-14

    Fix enabled with Sandeep's blessing; fixed in 2.2.1 release after all.

     
  • Kevin Vigor
    Kevin Vigor
    2000-10-14

    • status: open-later --> closed-fixed