[Bug 15364] Build broken when CFLAGS="-Wall -Werror" is used

wine-bugs at winehq.org wine-bugs at winehq.org
Sun Sep 21 19:07:35 CDT 2008


http://bugs.winehq.org/show_bug.cgi?id=15364


Maarten Lankhorst <m.b.lankhorst at gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |m.b.lankhorst at gmail.com




--- Comment #2 from Maarten Lankhorst <m.b.lankhorst at gmail.com>  2008-09-21 19:07:34 ---
If you actually took a look at config.log you would see this:

Program is:

 #include <X11/Xlib.h>
 #include <X11/extensions/Xrandr.h>
 int
 main ()
 {
 static typeof(XRRSetScreenConfigAndRate) * func;
   ;
   return 0;
 }

conftest.c: In function 'main':
conftest.c:136: warning: unused variable 'func'
configure:10683: $? = 1

This is not evadable, unless you add -Wno-unused

As an alternative you can invoke make as "make CFLAGS='-Wall -Werror -O2'".

Perhaps it would work if the program was this?

 #include <X11/Xlib.h>
 #include <X11/extensions/Xrandr.h>
 int
 main ()
 {
void *foo;
foo = &XRRSetScreenConfigAndRate;
   return 0;
 }


-- 
Configure bugmail: http://bugs.winehq.org/userprefs.cgi?tab=email
Do not reply to this email, post in Bugzilla using the
above URL to reply.
------- You are receiving this mail because: -------
You are watching all bug changes.



More information about the wine-bugs mailing list