Fixed issue on build with gcc.
continuous-integration/drone/push Build is failing
Details
continuous-integration/drone/push Build is failing
Details
This commit is contained in:
parent
7827b8bb2b
commit
3235a99ff6
|
@ -3,10 +3,7 @@
|
|||
|
||||
#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.
|
||||
|
|
|
@ -20,10 +20,7 @@
|
|||
|
||||
#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
|
||||
|
|
|
@ -3,10 +3,7 @@
|
|||
|
||||
#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
|
||||
|
||||
|
||||
|
|
|
@ -6,10 +6,7 @@
|
|||
|
||||
#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
|
||||
|
||||
|
||||
|
|
|
@ -13,10 +13,7 @@
|
|||
|
||||
#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>
|
||||
|
|
|
@ -2,8 +2,13 @@
|
|||
#define PKMNLIB_PKMNSCRIPT_HPP
|
||||
#include <CreatureLib/Battling/ScriptHandling/Script.hpp>
|
||||
|
||||
#ifdef __clang__
|
||||
#pragma clang diagnostic push
|
||||
#pragma clang diagnostic ignored "-Wunused-parameter"
|
||||
#elif defined __GNUC__
|
||||
#pragma GCC diagnostic push
|
||||
#pragma GCC diagnostic ignored "-Wunused-parameter"
|
||||
#endif
|
||||
|
||||
namespace PkmnLib::Battling {
|
||||
class PkmnScript : public CreatureLib::Battling::Script {
|
||||
|
@ -22,6 +27,11 @@ namespace PkmnLib::Battling {
|
|||
CreatureLib::Battling::Creature* winningMon, bool* shareExperience){};
|
||||
};
|
||||
}
|
||||
|
||||
#ifdef __clang__
|
||||
#pragma clang diagnostic pop
|
||||
#elif defined __GNUC__
|
||||
#pragma GCC diagnostic pop
|
||||
#endif
|
||||
|
||||
#endif // PKMNLIB_PKMNSCRIPT_HPP
|
||||
|
|
|
@ -3,12 +3,7 @@
|
|||
#include <CreatureLib/Battling/ScriptHandling/Script.hpp>
|
||||
#define ANGELSCRIPT_DLL_LIBRARY_IMPORT
|
||||
#include <CreatureLib/Library/Exceptions/NotImplementedException.hpp>
|
||||
|
||||
#pragma clang diagnostic push
|
||||
#pragma clang diagnostic ignored "-Wunused-parameter"
|
||||
#include <angelscript.h>
|
||||
#pragma clang diagnostic pop
|
||||
|
||||
#include <cstdint>
|
||||
#include "../../../extern/angelscript_addons/scriptarray/scriptarray.h"
|
||||
#include "../../Battling/PkmnScript.hpp"
|
||||
|
|
|
@ -5,10 +5,7 @@
|
|||
#include <Arbutils/Collections/Dictionary.hpp>
|
||||
#include <Arbutils/StringView.hpp>
|
||||
#include <CreatureLib/Library/Exceptions/CreatureException.hpp>
|
||||
#pragma clang diagnostic push
|
||||
#pragma clang diagnostic ignored "-Wunused-parameter"
|
||||
#include <angelscript.h>
|
||||
#pragma clang diagnostic pop
|
||||
#include <cstring>
|
||||
#include <unordered_map>
|
||||
#include <utility>
|
||||
|
|
|
@ -1,10 +1,7 @@
|
|||
#ifndef PKMNLIB_CONTEXTPOOL_HPP
|
||||
#define PKMNLIB_CONTEXTPOOL_HPP
|
||||
|
||||
#pragma clang diagnostic push
|
||||
#pragma clang diagnostic ignored "-Wunused-parameter"
|
||||
#include <angelscript.h>
|
||||
#pragma clang diagnostic pop
|
||||
#include <vector>
|
||||
|
||||
class ContextPool {
|
||||
|
|
|
@ -1,10 +1,7 @@
|
|||
#ifndef PKMNLIB_BASICSCRIPTCLASS_HPP
|
||||
#define PKMNLIB_BASICSCRIPTCLASS_HPP
|
||||
|
||||
#pragma clang diagnostic push
|
||||
#pragma clang diagnostic ignored "-Wunused-parameter"
|
||||
#include <angelscript.h>
|
||||
#pragma clang diagnostic pop
|
||||
|
||||
class BasicScriptClass {
|
||||
public:
|
||||
|
|
|
@ -1,10 +1,7 @@
|
|||
#ifndef PKMNLIB_REGISTERBATTLECLASS_HPP
|
||||
#define PKMNLIB_REGISTERBATTLECLASS_HPP
|
||||
|
||||
#pragma clang diagnostic push
|
||||
#pragma clang diagnostic ignored "-Wunused-parameter"
|
||||
#include <angelscript.h>
|
||||
#pragma clang diagnostic pop
|
||||
class RegisterBattleClass {
|
||||
static void RegisterChoiceQueue(asIScriptEngine* engine);
|
||||
static void RegisterBattle(asIScriptEngine* engine);
|
||||
|
|
|
@ -1,10 +1,7 @@
|
|||
#ifndef PKMNLIB_REGISTERBATTLELIBRARY_HPP
|
||||
#define PKMNLIB_REGISTERBATTLELIBRARY_HPP
|
||||
|
||||
#pragma clang diagnostic push
|
||||
#pragma clang diagnostic ignored "-Wunused-parameter"
|
||||
#include <angelscript.h>
|
||||
#pragma clang diagnostic pop
|
||||
|
||||
class RegisterBattleLibrary {
|
||||
static void RegisterDamageLibrary(asIScriptEngine* engine);
|
||||
|
|
|
@ -1,9 +1,7 @@
|
|||
#ifndef PKMNLIB_REGISTEREXECUTINGATTACK_HPP
|
||||
#define PKMNLIB_REGISTEREXECUTINGATTACK_HPP
|
||||
#pragma clang diagnostic push
|
||||
#pragma clang diagnostic ignored "-Wunused-parameter"
|
||||
|
||||
#include <angelscript.h>
|
||||
#pragma clang diagnostic pop
|
||||
|
||||
class RegisterExecutingAttack {
|
||||
static void RegisterHitData(asIScriptEngine* engine);
|
||||
|
|
|
@ -1,10 +1,7 @@
|
|||
#ifndef PKMNLIB_REGISTERPOKEMONCLASS_HPP
|
||||
#define PKMNLIB_REGISTERPOKEMONCLASS_HPP
|
||||
|
||||
#pragma clang diagnostic push
|
||||
#pragma clang diagnostic ignored "-Wunused-parameter"
|
||||
#include <angelscript.h>
|
||||
#pragma clang diagnostic pop
|
||||
|
||||
class RegisterPokemonClass {
|
||||
static void RegisterDamageSource(asIScriptEngine* engine);
|
||||
|
|
|
@ -1,10 +1,7 @@
|
|||
#ifndef PKMNLIB_REGISTERTURNCHOICES_HPP
|
||||
#define PKMNLIB_REGISTERTURNCHOICES_HPP
|
||||
|
||||
#pragma clang diagnostic push
|
||||
#pragma clang diagnostic ignored "-Wunused-parameter"
|
||||
#include <angelscript.h>
|
||||
#pragma clang diagnostic pop
|
||||
|
||||
class RegisterTurnChoices {
|
||||
static void RegisterTurnChoiceKindEnum(asIScriptEngine* engine);
|
||||
|
|
|
@ -1,10 +1,8 @@
|
|||
#ifndef PKMNLIB_CONSTSTRING_HPP
|
||||
#define PKMNLIB_CONSTSTRING_HPP
|
||||
|
||||
#include <Arbutils/Assert.hpp>
|
||||
#pragma clang diagnostic push
|
||||
#pragma clang diagnostic ignored "-Wunused-parameter"
|
||||
#include <angelscript.h>
|
||||
#pragma clang diagnostic pop
|
||||
|
||||
class ConstStringRegister {
|
||||
public:
|
||||
|
|
|
@ -1,10 +1,7 @@
|
|||
#ifndef PKMNLIB_REGISTEREFFECTPARAMETER_HPP
|
||||
#define PKMNLIB_REGISTEREFFECTPARAMETER_HPP
|
||||
|
||||
#pragma clang diagnostic push
|
||||
#pragma clang diagnostic ignored "-Wunused-parameter"
|
||||
#include <angelscript.h>
|
||||
#pragma clang diagnostic pop
|
||||
|
||||
class RegisterEffectParameter {
|
||||
public:
|
||||
|
|
|
@ -1,9 +1,7 @@
|
|||
#ifndef PKMNLIB_REGISTERGROWTHRATETYPES_HPP
|
||||
#define PKMNLIB_REGISTERGROWTHRATETYPES_HPP
|
||||
#pragma clang diagnostic push
|
||||
#pragma clang diagnostic ignored "-Wunused-parameter"
|
||||
|
||||
#include <angelscript.h>
|
||||
#pragma clang diagnostic pop
|
||||
|
||||
class RegisterGrowthRateTypes {
|
||||
static void RegisterGrowthRateType(asIScriptEngine* engine);
|
||||
|
|
|
@ -1,9 +1,7 @@
|
|||
#ifndef PKMNLIB_REGISTERITEMTYPES_HPP
|
||||
#define PKMNLIB_REGISTERITEMTYPES_HPP
|
||||
#pragma clang diagnostic push
|
||||
#pragma clang diagnostic ignored "-Wunused-parameter"
|
||||
|
||||
#include <angelscript.h>
|
||||
#pragma clang diagnostic pop
|
||||
|
||||
class RegisterItemTypes {
|
||||
static void RegisterItemCategoryEnum(asIScriptEngine* engine);
|
||||
|
|
|
@ -1,9 +1,7 @@
|
|||
#ifndef PKMNLIB_REGISTERMOVETYPES_HPP
|
||||
#define PKMNLIB_REGISTERMOVETYPES_HPP
|
||||
#pragma clang diagnostic push
|
||||
#pragma clang diagnostic ignored "-Wunused-parameter"
|
||||
|
||||
#include <angelscript.h>
|
||||
#pragma clang diagnostic pop
|
||||
|
||||
class RegisterMoveTypes {
|
||||
static void RegisterMoveCategory(asIScriptEngine* engine);
|
||||
|
|
|
@ -1,9 +1,7 @@
|
|||
#ifndef PKMNLIB_REGISTERSPECIESTYPES_HPP
|
||||
#define PKMNLIB_REGISTERSPECIESTYPES_HPP
|
||||
#pragma clang diagnostic push
|
||||
#pragma clang diagnostic ignored "-Wunused-parameter"
|
||||
|
||||
#include <angelscript.h>
|
||||
#pragma clang diagnostic pop
|
||||
|
||||
class RegisterSpeciesTypes {
|
||||
public:
|
||||
|
|
|
@ -1,10 +1,7 @@
|
|||
#ifndef PKMNLIB_REGISTERSTATICLIBRARYTYPES_HPP
|
||||
#define PKMNLIB_REGISTERSTATICLIBRARYTYPES_HPP
|
||||
|
||||
#pragma clang diagnostic push
|
||||
#pragma clang diagnostic ignored "-Wunused-parameter"
|
||||
#include <angelscript.h>
|
||||
#pragma clang diagnostic pop
|
||||
|
||||
class RegisterStaticLibraryTypes {
|
||||
static void RegisterLibrarySettingsType(asIScriptEngine* engine);
|
||||
|
|
|
@ -1,9 +1,7 @@
|
|||
#ifndef PKMNLIB_REGISTERTYPELIBRARY_HPP
|
||||
#define PKMNLIB_REGISTERTYPELIBRARY_HPP
|
||||
#pragma clang diagnostic push
|
||||
#pragma clang diagnostic ignored "-Wunused-parameter"
|
||||
|
||||
#include <angelscript.h>
|
||||
#pragma clang diagnostic pop
|
||||
|
||||
class RegisterTypeLibrary {
|
||||
static void RegisterTypeLibraryType(asIScriptEngine* engine);
|
||||
|
|
Loading…
Reference in New Issue