Fixed issue on build with gcc.
continuous-integration/drone/push Build is failing Details

This commit is contained in:
Deukhoofd 2020-07-18 13:19:35 +02:00
parent 7827b8bb2b
commit 3235a99ff6
Signed by: Deukhoofd
GPG Key ID: ADF2E9256009EDCE
23 changed files with 17 additions and 68 deletions

View File

@ -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.

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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>

View File

@ -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

View File

@ -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"

View File

@ -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>

View File

@ -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 {

View File

@ -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:

View File

@ -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);

View File

@ -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);

View File

@ -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);

View File

@ -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);

View File

@ -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);

View File

@ -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:

View File

@ -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:

View File

@ -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);

View File

@ -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);

View File

@ -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);

View File

@ -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:

View File

@ -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);

View File

@ -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);