Hide compiler warnings from external includes

This commit is contained in:
Itms
2025-07-05 16:04:08 +02:00
parent aca798b318
commit 2d6d510ffa
13 changed files with 7 additions and 190 deletions
-28
View File
@@ -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