aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorMattias Andrée <maandree@operamail.com>2014-09-13 11:36:04 +0200
committerMattias Andrée <maandree@operamail.com>2014-09-13 11:36:04 +0200
commitc367cf3b3a09f1f0a5abdf44c25a1d016857b022 (patch)
tree1f1798e74def238bf7febf482740cd8ec783645e /src
parentupdate gamma-helper to support 8-bit ramps (diff)
downloadlibgamma-c367cf3b3a09f1f0a5abdf44c25a1d016857b022.tar.gz
libgamma-c367cf3b3a09f1f0a5abdf44c25a1d016857b022.tar.bz2
libgamma-c367cf3b3a09f1f0a5abdf44c25a1d016857b022.tar.xz
m
Signed-off-by: Mattias Andrée <maandree@operamail.com>
Diffstat (limited to 'src')
-rw-r--r--src/lib/gamma-linux-drm.c2
-rw-r--r--src/test/update-warnings.h3
2 files changed, 4 insertions, 1 deletions
diff --git a/src/lib/gamma-linux-drm.c b/src/lib/gamma-linux-drm.c
index 2619e0d..6774e02 100644
--- a/src/lib/gamma-linux-drm.c
+++ b/src/lib/gamma-linux-drm.c
@@ -268,7 +268,7 @@ static int figure_out_card_open_error(const char* pathname)
# ifdef __GCC__
# pragma GCC diagnostic push
# pragma GCC diagnostic ignored "-Wcpp"
-# warning figure_out_card_open_error is not thread-safe
+# warning figure_out_card_open_error is not thread-safe.
# pragma GCC diagnostic pop
# endif
/* Not thread-safe. */
diff --git a/src/test/update-warnings.h b/src/test/update-warnings.h
index b400fe3..36d8940 100644
--- a/src/test/update-warnings.h
+++ b/src/test/update-warnings.h
@@ -44,6 +44,8 @@
*/
#ifdef __GCC__
+# pragma GCC diagnostic push
+# pragma GCC diagnostic ignored "-Wcpp"
# if LIBGAMMA_ERROR_MIN < -46
# warning New error codes have been added to libgamma.
# endif
@@ -59,6 +61,7 @@
# if LIBGAMMA_CRTC_INFO_COUNT > 13
# warning New CRTC information fields have been added to libgamma.
# endif
+# pragma GCC diagnostic pop
#endif