[oe-issues] [Bug 2292] New: acpid warning error breaks build

bugzilla-daemon at tinman.treke.net bugzilla-daemon at tinman.treke.net
Thu May 10 08:37:22 UTC 2007


http://bugs.openembedded.org/show_bug.cgi?id=2292

           Summary: acpid warning error breaks build
           Product: Openembedded
           Version: unspecified
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Severity: normal
          Priority: P2
         Component: Build
        AssignedTo: openembedded-issues at lists.openembedded.org
        ReportedBy: jake at cogini.com
         QAContact: tinderbox-oe at gmx.net


acpid uses -Werror compile flag so that warnings are considered errors.

With gcc 4.1.2, there is a warning:

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

Every time the variable is used, it is protected by a flag. So it is not
really being used uninitialized. The attached patch initializes the variable
to avoid the warning and get it to compile.

A better solution might be to remove -Werror from the Makefile, so the build
would be less brittle.


-- 
Configure bugmail: http://bugs.openembedded.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.




More information about the Openembedded-issues mailing list