Bug 63006

Summary: via_lvds.c warning, char* compared to string literal
Product: xorg Reporter: Max Krummenacher <max.oss.09>
Component: Driver/openchromeAssignee: Openchrome development list <openchrome-devel>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: medium    
Version: git   
Hardware: x86 (IA32)   
OS: Linux (All)   
Whiteboard:
i915 platform: i915 features:
Attachments:
Description Flags
patch which does no longer emit the warning none

Description Max Krummenacher 2013-04-01 20:50:08 UTC
Created attachment 77290 [details]
patch which does no longer emit the warning

gcc 4.7.2 issues a warning which makes the 'open suse build system' fail.
The conditional most probably will always be false.

via_lvds.c: In function 'via_lvds_detect':
via_lvds.c:1305:26: warning: comparison with string literal results in unspecified behavior [-Waddress]
Comment 1 James Simmons 2013-05-20 22:18:54 UTC
Yuck, string testing in c++ style. Your patch does the right thing and I have merged it. Thank you.

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.