[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[lmi-commits] [lmi] master f79a907 4/7: Don't disable gcc-specific warni
From: |
Greg Chicares |
Subject: |
[lmi-commits] [lmi] master f79a907 4/7: Don't disable gcc-specific warnings in GUI code for clang |
Date: |
Tue, 13 Nov 2018 12:21:36 -0500 (EST) |
branch: master
commit f79a9079a7d92d9ab3b5dc373370bc11a75b3ce1
Author: Vadim Zeitlin <address@hidden>
Commit: Gregory W. Chicares <address@hidden>
Don't disable gcc-specific warnings in GUI code for clang
This is unnecessary as clang doesn't give any of these warnings anyhow
and is actually harmful as -Wcast-qual doesn't exist in clang and so
using the pragma disabling it results in an error.
---
pchfile_wx.hpp | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/pchfile_wx.hpp b/pchfile_wx.hpp
index dbd7289..88875de 100644
--- a/pchfile_wx.hpp
+++ b/pchfile_wx.hpp
@@ -34,7 +34,7 @@
// Even if precompiled headers are not really being used, use this header to
// disable some warnings which are enabled for the rest of lmi code but have to
// be disabled for the code using wxWidgets as they occur in wxWidgets headers.
-#if defined __GNUC__
+#if defined __GNUC__ && !defined __clang__
# pragma GCC diagnostic ignored "-Wcast-qual"
// only 'strvararg.h:1048:19':
# pragma GCC diagnostic ignored "-Wdouble-promotion"
- [lmi-commits] [lmi] master updated (379fcf3 -> 40bee87), Greg Chicares, 2018/11/13
- [lmi-commits] [lmi] master fc4e8fe 1/7: Fix warnings in Boost.Regex compilation with clang, Greg Chicares, 2018/11/13
- [lmi-commits] [lmi] master 934c49e 5/7: Update #endif comments when #if conditions change, Greg Chicares, 2018/11/13
- [lmi-commits] [lmi] master 40bee87 7/7: Work around a [bitmask.types] issue, Greg Chicares, 2018/11/13
- [lmi-commits] [lmi] master f79a907 4/7: Don't disable gcc-specific warnings in GUI code for clang,
Greg Chicares <=
- [lmi-commits] [lmi] master ebed357 2/7: Don't try to disable GCC -Wuseless-cast warning for clang, Greg Chicares, 2018/11/13
- [lmi-commits] [lmi] master ea937af 3/7: Update #endif comments when #if conditions change, Greg Chicares, 2018/11/13
- [lmi-commits] [lmi] master 40fa47f 6/7: Remove disused object dependencies, Greg Chicares, 2018/11/13