mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
Added guards for unknown pragmas
Removed push/pop if there was no change to the warnings *in the same file* for a given compiler. This assumes the imported boost headers use a warning stack themselves. The pragmas don't seem to be required anymore, but were not removed to mantain compatibility with older versions of the boost library. Compiled with - clang version 6.0.1 (tags/RELEASE_601/final) - gcc (GCC) 8.1.1 20180531 against: - libboost 1.67.0-5
This commit is contained in:
@@ -40,7 +40,6 @@
|
||||
#include <libdevcore/vector_ref.h>
|
||||
|
||||
#if defined(__GNUC__)
|
||||
#pragma warning(push)
|
||||
#pragma GCC diagnostic push
|
||||
#pragma GCC diagnostic ignored "-Wunused-parameter"
|
||||
#endif // defined(__GNUC__)
|
||||
@@ -57,7 +56,6 @@
|
||||
#include <boost/multiprecision/cpp_int.hpp>
|
||||
|
||||
#if defined(__GNUC__)
|
||||
#pragma warning(pop)
|
||||
#pragma GCC diagnostic pop
|
||||
#endif // defined(__GNUC__)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user