#11 Compile bug with gcc-4.1.2

v1.0 (example)
closed
nobody
None
5
2007-05-24
2007-05-10
No

acpid.c: In function 'main':
acpid.c:64: warning: 'sock_fd' may be used uninitialized in this function

sock_fd is not actually used uninitialized, as its use
is always protected by a flag.

Attached is a patch that initializes sock_fd to avoid the warning.

Discussion

  • Tim Hockin

    Tim Hockin - 2007-05-24

    Logged In: YES
    user_id=365227
    Originator: NO

    Fixed in CVS

     
  • Tim Hockin

    Tim Hockin - 2007-05-24
    • status: open --> closed
     

Log in to post a comment.