aboutsummaryrefslogtreecommitdiffstats
path: root/src/fake-w32-gdi.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/fake-w32-gdi.c')
-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)