mirror of
https://gitea.wildfiregames.com/0ad/0ad.git
synced 2026-07-29 08:32:36 +00:00
Hide compiler warnings from external includes
This commit is contained in:
@@ -18,23 +18,6 @@
|
||||
#ifndef INCLUDED_SCRIPTFORWARD
|
||||
#define INCLUDED_SCRIPTFORWARD
|
||||
|
||||
|
||||
// Ignore some harmless warnings
|
||||
#if GCC_VERSION
|
||||
# pragma GCC diagnostic push
|
||||
# pragma GCC diagnostic ignored "-Wunused-parameter"
|
||||
#endif
|
||||
#if CLANG_VERSION
|
||||
# pragma clang diagnostic push
|
||||
# pragma clang diagnostic ignored "-Wunused-parameter"
|
||||
#endif
|
||||
#if MSC_VERSION
|
||||
# pragma warning(push, 1)
|
||||
# pragma warning(disable: 4100)
|
||||
# pragma warning(disable: 4068)
|
||||
#endif
|
||||
|
||||
|
||||
#include "js/TypeDecls.h"
|
||||
|
||||
// Complete with a few additional ones.
|
||||
@@ -51,15 +34,4 @@ class ScriptContext;
|
||||
class ScriptInterface;
|
||||
class ScriptRequest;
|
||||
|
||||
#if GCC_VERSION
|
||||
# pragma GCC diagnostic pop
|
||||
#endif
|
||||
#if CLANG_VERSION
|
||||
# pragma clang diagnostic pop
|
||||
#endif
|
||||
#if MSC_VERSION
|
||||
# pragma warning(pop)
|
||||
#endif
|
||||
|
||||
|
||||
#endif // INCLUDED_SCRIPTFORWARD
|
||||
|
||||
Reference in New Issue
Block a user