aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMattias Andrée <maandree@operamail.com>2014-05-22 19:23:34 +0200
committerMattias Andrée <maandree@operamail.com>2014-05-22 19:23:34 +0200
commitf912666beba43f998445a9b6c95f4c444dd9c678 (patch)
tree713ce342f486f26c17c972135d01292dfb17f147
parentmisc + fake-w32-gdi (diff)
downloadlibgamma-f912666beba43f998445a9b6c95f4c444dd9c678.tar.gz
libgamma-f912666beba43f998445a9b6c95f4c444dd9c678.tar.bz2
libgamma-f912666beba43f998445a9b6c95f4c444dd9c678.tar.xz
add temporary ignoral of aggregate return from xcb
Signed-off-by: Mattias Andrée <maandree@operamail.com>
-rw-r--r--src/fake-w32-gdi.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/fake-w32-gdi.c b/src/fake-w32-gdi.c
index bfd667a..048b64d 100644
--- a/src/fake-w32-gdi.c
+++ b/src/fake-w32-gdi.c
@@ -156,6 +156,9 @@ int GetDeviceCaps(HDC hDC, int nIndex)
}
+# pragma GCC diagnostic push
+# pragma GCC diagnostic ignored "-Waggregate-return"
+
/* http://msdn.microsoft.com/en-us/library/windows/desktop/dd372194(v=vs.85).aspx */
BOOL SetDeviceGammaRamp(HDC hDC, LPVOID lpRamp)
{
@@ -244,6 +247,8 @@ HDC CreateDC(LPCTSTR lpszDriver, LPCTSTR lpszDevice, void *lpszOutput, void *lpI
return crtcs + crtc_index;
}
+# pragma GCC diagnostic pop
+
/* http://msdn.microsoft.com/en-us/library/windows/desktop/dd162609(v=vs.85).aspx */
BOOL EnumDisplayDevices(LPCTSTR lpDevice, DWORD iDevNum, PDISPLAY_DEVICE lpDisplayDevice, DWORD dwFlags)