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 | 27396c64a17916276f6dd00173e531ff7153e199 (patch) | |
| tree | aebb32f571e5279780befc1358cf109f3ca586c9 | |
| parent | 431cb00684cbdc2b2946fae0c90be04919dc47bc (diff) | |
| download | scintilla-mirror-27396c64a17916276f6dd00173e531ff7153e199.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))) |
