mirror of
https://gitea.wildfiregames.com/0ad/0ad.git
synced 2026-07-26 07:11:29 +00:00
Hide compiler warnings from external includes
This commit is contained in:
@@ -23,23 +23,8 @@
|
||||
#include "ScriptRequest.h"
|
||||
#include "StructuredClone.h"
|
||||
|
||||
// Ignore warnings in SM headers.
|
||||
#if GCC_VERSION || CLANG_VERSION
|
||||
# pragma GCC diagnostic push
|
||||
# pragma GCC diagnostic ignored "-Wunused-parameter"
|
||||
# pragma GCC diagnostic ignored "-Wnon-virtual-dtor"
|
||||
#elif MSC_VERSION
|
||||
# pragma warning(push, 1)
|
||||
#endif
|
||||
|
||||
#include "js/StructuredClone.h"
|
||||
|
||||
#if GCC_VERSION || CLANG_VERSION
|
||||
# pragma GCC diagnostic pop
|
||||
#elif MSC_VERSION
|
||||
# pragma warning(pop)
|
||||
#endif
|
||||
|
||||
Script::StructuredClone Script::WriteStructuredClone(const ScriptRequest& rq, JS::HandleValue v)
|
||||
{
|
||||
Script::StructuredClone ret(new JSStructuredCloneData(JS::StructuredCloneScope::SameProcess));
|
||||
|
||||
Reference in New Issue
Block a user