diff options
author | Jon TURNEY <jon.turney@dronecode.org.uk> | 2010-10-15 14:12:22 +0100 |
---|---|---|
committer | Jon TURNEY <jon.turney@dronecode.org.uk> | 2010-10-19 14:20:05 +0100 |
commit | 1f2a57d9e46424a2e0861f55253b91d930d79083 (patch) | |
tree | 2aaf0fc3e76f0eb62fec41e760cbc8306bb78524 | |
parent | 55e528b6cc6451dbb1e65baec199d4df0441e86d (diff) |
Cygwin/X: Turn off the bad-function-cast warning for XWin code
Turn off the bad-function-cast warning for the XWin code, it's near impossible
to write code which uses Win32 API calls that doesn't trigger this warning
For example, SendMessage(WM_SETICON) returns an LRESULT, but we are supposed to
know this is safe to cast this result to a HICON, which gcc considers a non-matching
type.
Signed-off-by: Jon TURNEY <jon.turney@dronecode.org.uk>
Reviewed-by: Colin Harrison <colin.harrison@virgin.net>
-rw-r--r-- | hw/xwin/Makefile.am | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/hw/xwin/Makefile.am b/hw/xwin/Makefile.am index 58df308f9..232d65e86 100644 --- a/hw/xwin/Makefile.am +++ b/hw/xwin/Makefile.am @@ -162,7 +162,8 @@ AM_YFLAGS = -d AM_LFLAGS = -i AM_CFLAGS = -DHAVE_XWIN_CONFIG_H $(DIX_CFLAGS) \ $(XWINMODULES_CFLAGS) \ - -I$(top_srcdir) + -I$(top_srcdir) \ + -Wno-bad-function-cast MAN_SRCS = XWin.man.pre XWinrc.man.pre |