aboutsummaryrefslogtreecommitdiffstats
path: root/liblll/CodeFragment.cpp
diff options
context:
space:
mode:
authorchriseth <chris@ethereum.org>2018-08-06 17:55:01 +0800
committerGitHub <noreply@github.com>2018-08-06 17:55:01 +0800
commit74e6067347eb822c2e107c29d6ea58f22b328de7 (patch)
treef96cebd7c011543a64b568df42606b2fb8f26601 /liblll/CodeFragment.cpp
parent3576980710e019165db272afb4fc5e80f8bd5bff (diff)
parent6c3b48ddfcfb0849e1083cea8d4fae4446511be1 (diff)
downloaddexon-solidity-74e6067347eb822c2e107c29d6ea58f22b328de7.tar
dexon-solidity-74e6067347eb822c2e107c29d6ea58f22b328de7.tar.gz
dexon-solidity-74e6067347eb822c2e107c29d6ea58f22b328de7.tar.bz2
dexon-solidity-74e6067347eb822c2e107c29d6ea58f22b328de7.tar.lz
dexon-solidity-74e6067347eb822c2e107c29d6ea58f22b328de7.tar.xz
dexon-solidity-74e6067347eb822c2e107c29d6ea58f22b328de7.tar.zst
dexon-solidity-74e6067347eb822c2e107c29d6ea58f22b328de7.zip
Merge pull request #4602 from hackaugusto/warnings
Added guards for unknown pragmas
Diffstat (limited to 'liblll/CodeFragment.cpp')
-rw-r--r--liblll/CodeFragment.cpp10
1 files changed, 8 insertions, 2 deletions
diff --git a/liblll/CodeFragment.cpp b/liblll/CodeFragment.cpp
index 3e82889a..0aef05a9 100644
--- a/liblll/CodeFragment.cpp
+++ b/liblll/CodeFragment.cpp
@@ -22,12 +22,18 @@
#include "CodeFragment.h"
#include <boost/algorithm/string.hpp>
-#pragma warning(push)
+
+#if defined(__GNUC__)
#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Wunused-parameter"
+#endif // defined(__GNUC__)
+
#include <boost/spirit/include/support_utree.hpp>
-#pragma warning(pop)
+
+#if defined(__GNUC__)
#pragma GCC diagnostic pop
+#endif // defined(__GNUC__)
+
#include <libdevcore/CommonIO.h>
#include <libevmasm/Instruction.h>
#include "CompilerState.h"