diff options
author | Neil Hodgson <nyamatongwe@gmail.com> | 2012-05-27 20:43:53 +1000 |
---|---|---|
committer | Neil Hodgson <nyamatongwe@gmail.com> | 2012-05-27 20:43:53 +1000 |
commit | 744a0004b2df89d701c4259a17bcf7854155562c (patch) | |
tree | 5f611ea9daa2f98f4b10e0ce43aabc5359775748 | |
parent | 12311e426da03e63647dfca33b258ddf215016c6 (diff) | |
download | scintilla-mirror-744a0004b2df89d701c4259a17bcf7854155562c.tar.gz |
Disable a warning that clang 3.0 gives incorrectly.
-rw-r--r-- | gtk/PlatGTK.cxx | 5 | ||||
-rw-r--r-- | gtk/ScintillaGTK.cxx | 5 |
2 files changed, 10 insertions, 0 deletions
diff --git a/gtk/PlatGTK.cxx b/gtk/PlatGTK.cxx index 7bbd84049..d98c23530 100644 --- a/gtk/PlatGTK.cxx +++ b/gtk/PlatGTK.cxx @@ -25,6 +25,11 @@ #include "UniConversion.h" #include "XPM.h" +#if defined(__clang__) +// Clang 3.0 incorrectly displays sentinel warnings. Fixed by clang 3.1. +#pragma GCC diagnostic ignored "-Wsentinel" +#endif + /* GLIB must be compiled with thread support, otherwise we will bail on trying to use locks, and that could lead to problems for someone. `glib-config --libs gthread` needs diff --git a/gtk/ScintillaGTK.cxx b/gtk/ScintillaGTK.cxx index a61838923..be007e775 100644 --- a/gtk/ScintillaGTK.cxx +++ b/gtk/ScintillaGTK.cxx @@ -64,6 +64,11 @@ #include "Converter.h" +#if defined(__clang__) +// Clang 3.0 incorrectly displays sentinel warnings. Fixed by clang 3.1. +#pragma GCC diagnostic ignored "-Wsentinel" +#endif + #if GTK_CHECK_VERSION(2,20,0) #define IS_WIDGET_REALIZED(w) (gtk_widget_get_realized(GTK_WIDGET(w))) #define IS_WIDGET_MAPPED(w) (gtk_widget_get_mapped(GTK_WIDGET(w))) |