Menu

#2 Mandrake 8.1 compile failure

open
nobody
None
2
2002-04-09
2002-04-09
Craig
No

cc1: warnings being treated as errors
mp3_check_misc.c: In function `parse_args':
mp3_check_misc.c:629: warning: `fp' might be used
uninitialized in this function

Probably a harmless warning, but -Werror is turned on
in the makefile.
Getting rid of 'register' in parse_args() on line 629
gets rid of the warning.

Discussion

  • Craig

    Craig - 2002-04-09
    • priority: 5 --> 2
     
  • Matt Dickinson

    Matt Dickinson - 2002-10-20

    Logged In: YES
    user_id=79036

    not sure if it's the right way, but i've fixed it:

    here's a diff -p0 of it

    *** mp3_check_misc.c Sat Sep 16 04:36:01 2000
    --- mp3_check_misc.c.new Sun Oct 20 14:31:53 2002
    *************** int scan_file(FILE *,
    char *filename,
    *** 17 ****
    ! int parse_args(char **argv, meta_options
    *flag_options, command_flags *flags);
    --- 17 ----
    ! int parse_args(char **argv, meta_options
    *flag_options, command_flags *flags, FILE *fp);
    *************** int
    *** 624 ****
    ! parse_args(argv, flag_options, flags)
    --- 624 ----
    ! parse_args(argv, flag_options, flags, fp)
    *************** parse_args(argv, flag_options, flags)
    *** 627 ****
    --- 628 ----
    + FILE *fp;
    *************** parse_args(argv, flag_options, flags)
    *** 629 ****
    ! register FILE *fp;
    --- 630 ----
    ! // register FILE *fp;

     

Log in to post a comment.