diff options
author | LogicParrot <LogicParrot@users.noreply.github.com> | 2016-10-09 14:10:41 +0200 |
---|---|---|
committer | LogicParrot <LogicParrot@users.noreply.github.com> | 2016-10-09 14:10:41 +0200 |
commit | f951a2528325af8e1a9ef17f9a765ad68825aec7 (patch) | |
tree | c0fad320c151dec86590c3746dcbaaf5657df11c /src/Protocol | |
parent | Update apidoc (diff) | |
parent | Updated the Core plugin. (diff) | |
download | cuberite-alwaysTicked.tar cuberite-alwaysTicked.tar.gz cuberite-alwaysTicked.tar.bz2 cuberite-alwaysTicked.tar.lz cuberite-alwaysTicked.tar.xz cuberite-alwaysTicked.tar.zst cuberite-alwaysTicked.zip |
Diffstat (limited to 'src/Protocol')
-rw-r--r-- | src/Protocol/Protocol110x.cpp | 11 |
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 |