summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorbibo38 <bibo38@users.noreply.github.com>2016-09-06 23:00:28 +0200
committerMattes D <github@xoft.cz>2016-09-06 23:00:28 +0200
commit015ab00e1267bf3bf73499f08ada79825725005c (patch)
treef47e1f6342bbf2c68cf98ef655c54dbc2552db4b /src
parentAPIDoc: Allow to create a link to an object. (#3371) (diff)
downloadcuberite-015ab00e1267bf3bf73499f08ada79825725005c.tar
cuberite-015ab00e1267bf3bf73499f08ada79825725005c.tar.gz
cuberite-015ab00e1267bf3bf73499f08ada79825725005c.tar.bz2
cuberite-015ab00e1267bf3bf73499f08ada79825725005c.tar.lz
cuberite-015ab00e1267bf3bf73499f08ada79825725005c.tar.xz
cuberite-015ab00e1267bf3bf73499f08ada79825725005c.tar.zst
cuberite-015ab00e1267bf3bf73499f08ada79825725005c.zip
Diffstat (limited to '')
-rw-r--r--src/Protocol/Protocol110x.cpp11
1 files changed, 7 insertions, 4 deletions
diff --git a/src/Protocol/Protocol110x.cpp b/src/Protocol/Protocol110x.cpp
index a117d8750..bf44eb82f 100644
--- a/src/Protocol/Protocol110x.cpp
+++ b/src/Protocol/Protocol110x.cpp
@@ -41,8 +41,10 @@ Implements the 1.10.x protocol classes:
// IMPORTANT: The enum is used to automate the sequential counting of the
// Metadata indexes. Adding a new enum value causes the following values to
// increase their index. Therefore the ordering of the enum values is VERY important!
-#pragma clang diagnostic push
-#pragma clang diagnostic ignored "-Wduplicate-enum"
+#ifdef __clang__
+ #pragma clang diagnostic push
+ #pragma clang diagnostic ignored "-Wduplicate-enum"
+#endif
namespace Metadata
{
@@ -272,8 +274,9 @@ namespace Metadata
};
}
-#pragma clang diagnostic pop // Restore ignored clang errors
-
+#ifdef __clang__
+ #pragma clang diagnostic pop // Restore ignored clang errors
+#endif