Cleanup cmake file.
Some checks failed
continuous-integration/drone/push Build is failing

This commit is contained in:
2020-07-18 12:42:54 +02:00
parent 41b15dc693
commit dc3630b171
31 changed files with 141 additions and 69 deletions

View File

@@ -3,7 +3,10 @@
#ifndef ANGELSCRIPT_H
// Avoid having to inform include path if header is already include before
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Wunused-parameter"
#include <angelscript.h>
#pragma clang diagnostic pop
#endif
// Sometimes it may be desired to use the same method names as used by C++ STL.

View File

@@ -14,21 +14,21 @@
// TODO: Implement flags for turning on/off include directives and conditional programming
//---------------------------
// Declaration
//
#ifndef ANGELSCRIPT_H
// Avoid having to inform include path if header is already include before
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Wunused-parameter"
#include <angelscript.h>
#pragma clang diagnostic pop
#endif
#if defined(_MSC_VER) && _MSC_VER <= 1200
// disable the annoying warnings on MSVC 6
#pragma warning (disable:4786)
#pragma warning(disable : 4786)
#endif
#include <string>

View File

@@ -191,7 +191,7 @@ void CScriptHandle::EnumReferences(asIScriptEngine* inEngine) {
inEngine->GCEnumCallback(m_type);
}
void CScriptHandle::ReleaseReferences(asIScriptEngine* inEngine) {
void CScriptHandle::ReleaseReferences(asIScriptEngine*) {
// Simply clear the content to release the references
Set(0, 0);
}

View File

@@ -3,7 +3,10 @@
#ifndef ANGELSCRIPT_H
// Avoid having to inform include path if header is already include before
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Wunused-parameter"
#include <angelscript.h>
#pragma clang diagnostic pop
#endif

View File

@@ -6,7 +6,10 @@
#ifndef ANGELSCRIPT_H
// Avoid having to inform include path if header is already include before
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Wunused-parameter"
#include <angelscript.h>
#pragma clang diagnostic pop
#endif

View File

@@ -13,7 +13,10 @@
#ifndef ANGELSCRIPT_H
// Avoid having to inform include path if header is already include before
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Wunused-parameter"
#include <angelscript.h>
#pragma clang diagnostic pop
#endif
#include <string>