Bug 34224 - Gentoo QA warning: sys-auth/consolekit-0.4.3: ck-log-system-start.c: warning: dereferencing pointer ‘e’ does break strict-aliasing rules
Summary: Gentoo QA warning: sys-auth/consolekit-0.4.3: ck-log-system-start.c: warning:...
Status: NEW
Alias: None
Product: ConsoleKit
Classification: Unclassified
Component: Daemon (show other bugs)
Version: unspecified
Hardware: x86 (IA32) Linux (All)
: medium minor
Assignee: william.jon.mccann
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-02-12 23:26 UTC by Dan Wallis
Modified: 2011-02-12 23:26 UTC (History)
0 users

See Also:
i915 platform:
i915 features:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Dan Wallis 2011-02-12 23:26:41 UTC
When installing sys-auth/consolekit-0.4.3 on my Gentoo system, I received the following warnings:

 * QA Notice: Package has poor programming practices which may compile
 *            fine but exhibit random runtime failures.
 * ck-log-system-start.c:198: warning: dereferencing pointer ‘e’ does break strict-aliasing rules
 * ck-log-system-start.c:201: warning: dereferencing pointer ‘e’ does break strict-aliasing rules

 * Please do not file a Gentoo bug and instead report the above QA
 * issues directly to the upstream developers of this software.
 * Homepage: http://www.freedesktop.org/wiki/Software/ConsoleKit
 * ERROR: sys-auth/consolekit-0.4.3 failed:
 *   install aborted due to poor programming practices shown above


Looking through the build log itself, these appear to be the relevant lines:

  CC     ck-get-x11-display-device.o
  CCLD   ck-get-x11-display-device
  CC     ck-log-system-start.o
ck-log-system-start.c: In function ‘open_log_file’:
ck-log-system-start.c:103: warning: ignoring return value of ‘fchown’, declared with attribute warn_unused_result
ck-log-system-start.c: In function ‘main’:
ck-log-system-start.c:198: warning: dereferencing pointer ‘e’ does break strict-aliasing rules
ck-log-system-start.c:201: warning: dereferencing pointer ‘e’ does break strict-aliasing rules
ck-log-system-start.c:195: note: initialized from here
  CCLD   ck-log-system-start
  CC     ck-log-system-restart.o


Although I'm not sure how to fix these. Happy to provide details as required.


Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.