Remove "#pragma GCC diagnostic" lines which became unnecessary when using include_directories(SYSTEM ...)
This commit is contained in:
parent
4031efc230
commit
eaaa55b1c7
@ -19,8 +19,6 @@
|
||||
#include <PolyVoxCore/RawVolume.h>
|
||||
#include <cereal/archives/portable_binary.hpp>
|
||||
#include <cereal/types/string.hpp>
|
||||
#pragma GCC diagnostic push
|
||||
#pragma GCC diagnostic ignored "-Wstrict-aliasing"
|
||||
#include <Node.h>
|
||||
#include <Scene.h>
|
||||
#include <Model.h>
|
||||
@ -31,7 +29,6 @@
|
||||
#include <Light.h>
|
||||
#include <Geometry.h>
|
||||
#include <Zone.h>
|
||||
#pragma GCC diagnostic pop
|
||||
#include <deque>
|
||||
#include <algorithm>
|
||||
|
||||
|
@ -12,8 +12,6 @@
|
||||
#include "interface/thread_pool.h"
|
||||
#include <c55/getopt.h>
|
||||
#include <c55/os.h>
|
||||
#pragma GCC diagnostic push
|
||||
#pragma GCC diagnostic ignored "-Wstrict-aliasing"
|
||||
#include <Application.h>
|
||||
#include <Engine.h>
|
||||
#include <LuaScript.h>
|
||||
@ -36,7 +34,6 @@
|
||||
#include <PhysicsWorld.h>
|
||||
#include <DebugRenderer.h>
|
||||
#include <Profiler.h>
|
||||
#pragma GCC diagnostic pop
|
||||
extern "C" {
|
||||
#include <lua.h>
|
||||
#include <lauxlib.h>
|
||||
|
@ -6,10 +6,7 @@
|
||||
#include "client/state.h"
|
||||
#include "client/app.h"
|
||||
#include <c55/getopt.h>
|
||||
#pragma GCC diagnostic push
|
||||
#pragma GCC diagnostic ignored "-Wstrict-aliasing"
|
||||
#include <Context.h>
|
||||
#pragma GCC diagnostic pop
|
||||
#include <signal.h>
|
||||
#define MODULE "__main"
|
||||
namespace magic = Urho3D;
|
||||
|
@ -12,13 +12,10 @@
|
||||
#include <c55/string_util.h>
|
||||
#include <cereal/archives/portable_binary.hpp>
|
||||
#include <cereal/types/string.hpp>
|
||||
#pragma GCC diagnostic push
|
||||
#pragma GCC diagnostic ignored "-Wstrict-aliasing"
|
||||
#include <Node.h>
|
||||
#include <Scene.h>
|
||||
#include <MemoryBuffer.h>
|
||||
#include <SmoothedTransform.h>
|
||||
#pragma GCC diagnostic pop
|
||||
#include <cstring>
|
||||
#include <fstream>
|
||||
#include <deque>
|
||||
|
@ -2,13 +2,10 @@
|
||||
// Copyright 2014 Perttu Ahola <celeron55@gmail.com>
|
||||
#include "interface/atlas.h"
|
||||
#include "core/log.h"
|
||||
#pragma GCC diagnostic push
|
||||
#pragma GCC diagnostic ignored "-Wstrict-aliasing"
|
||||
#include <Context.h>
|
||||
#include <ResourceCache.h>
|
||||
#include <Texture2D.h>
|
||||
#include <Graphics.h>
|
||||
#pragma GCC diagnostic pop
|
||||
#include <Image.h>
|
||||
#define MODULE "atlas"
|
||||
|
||||
|
@ -6,8 +6,6 @@
|
||||
#include <PolyVoxCore/SimpleVolume.h>
|
||||
#include <PolyVoxCore/SurfaceMesh.h>
|
||||
#include <PolyVoxCore/CubicSurfaceExtractorWithNormals.h>
|
||||
#pragma GCC diagnostic push
|
||||
#pragma GCC diagnostic ignored "-Wstrict-aliasing"
|
||||
#include <Scene.h>
|
||||
#include <Node.h>
|
||||
#include <StaticModel.h>
|
||||
@ -23,7 +21,6 @@
|
||||
#include <Texture2D.h> // Allows cast to Texture
|
||||
#include <CollisionShape.h>
|
||||
#include <RigidBody.h>
|
||||
#pragma GCC diagnostic pop
|
||||
#include <climits>
|
||||
#define MODULE "mesh"
|
||||
|
||||
|
@ -3,12 +3,9 @@
|
||||
#pragma once
|
||||
#include "core/types.h"
|
||||
#include "interface/event.h"
|
||||
#pragma GCC diagnostic push
|
||||
#pragma GCC diagnostic ignored "-Wstrict-aliasing"
|
||||
#include <Object.h>
|
||||
#include <Variant.h>
|
||||
#include <StringHash.h>
|
||||
#pragma GCC diagnostic pop
|
||||
#include <functional>
|
||||
|
||||
namespace interface
|
||||
|
@ -4,10 +4,7 @@
|
||||
#include "core/types.h"
|
||||
#include "interface/voxel.h"
|
||||
#include <PolyVoxCore/RawVolume.h>
|
||||
#pragma GCC diagnostic push
|
||||
#pragma GCC diagnostic ignored "-Wstrict-aliasing"
|
||||
#include <CustomGeometry.h>
|
||||
#pragma GCC diagnostic pop
|
||||
|
||||
namespace Urho3D
|
||||
{
|
||||
|
@ -8,11 +8,8 @@
|
||||
#include <luabind/pointer_traits.hpp>
|
||||
#include <luabind/adopt_policy.hpp>
|
||||
#include <luabind/raw_policy.hpp>
|
||||
#pragma GCC diagnostic push
|
||||
#pragma GCC diagnostic ignored "-Wstrict-aliasing"
|
||||
#include <Scene.h>
|
||||
#include <Context.h>
|
||||
#pragma GCC diagnostic pop
|
||||
#define MODULE "lua_bindings"
|
||||
|
||||
using interface::AtlasRegistry;
|
||||
|
@ -11,15 +11,12 @@
|
||||
#include <luabind/luabind.hpp>
|
||||
#include <luabind/adopt_policy.hpp>
|
||||
#include <luabind/pointer_traits.hpp>
|
||||
#pragma GCC diagnostic push
|
||||
#pragma GCC diagnostic ignored "-Wstrict-aliasing"
|
||||
#include <Scene.h>
|
||||
#include <StaticModel.h>
|
||||
#include <Model.h>
|
||||
#include <CustomGeometry.h>
|
||||
#include <CollisionShape.h>
|
||||
#include <RigidBody.h>
|
||||
#pragma GCC diagnostic pop
|
||||
#define MODULE "lua_bindings"
|
||||
|
||||
namespace magic = Urho3D;
|
||||
|
@ -4,12 +4,9 @@
|
||||
#include "core/log.h"
|
||||
#include "client/app.h"
|
||||
#include <tolua++.h>
|
||||
#pragma GCC diagnostic push
|
||||
#pragma GCC diagnostic ignored "-Wstrict-aliasing"
|
||||
#include <Context.h>
|
||||
#include <Scene.h>
|
||||
#include <Profiler.h>
|
||||
#pragma GCC diagnostic pop
|
||||
#define MODULE "lua_bindings"
|
||||
|
||||
namespace magic = Urho3D;
|
||||
|
@ -9,10 +9,7 @@
|
||||
#include <luabind/adopt_policy.hpp>
|
||||
#include <luabind/object.hpp>
|
||||
#include <tolua++.h>
|
||||
#pragma GCC diagnostic push
|
||||
#pragma GCC diagnostic ignored "-Wstrict-aliasing"
|
||||
#include <Vector2.h>
|
||||
#pragma GCC diagnostic pop
|
||||
#define MODULE "lua_bindings"
|
||||
|
||||
using namespace interface;
|
||||
|
@ -10,10 +10,7 @@
|
||||
#include <luabind/luabind.hpp>
|
||||
#include <luabind/adopt_policy.hpp>
|
||||
#include <luabind/pointer_traits.hpp>
|
||||
#pragma GCC diagnostic push
|
||||
#pragma GCC diagnostic ignored "-Wstrict-aliasing"
|
||||
#include <VectorBuffer.h>
|
||||
#pragma GCC diagnostic pop
|
||||
#define MODULE "lua_bindings"
|
||||
|
||||
namespace magic = Urho3D;
|
||||
|
@ -7,13 +7,10 @@
|
||||
#include "interface/server.h"
|
||||
#include <c55/getopt.h>
|
||||
#include <c55/os.h>
|
||||
#pragma GCC diagnostic push
|
||||
#pragma GCC diagnostic ignored "-Wstrict-aliasing"
|
||||
#include <Context.h>
|
||||
#include <Engine.h>
|
||||
#include <Scene.h>
|
||||
#include <Profiler.h>
|
||||
#pragma GCC diagnostic pop
|
||||
#ifdef _WIN32
|
||||
#include "ports/windows_sockets.h"
|
||||
#include "ports/windows_compat.h"
|
||||
|
@ -17,8 +17,6 @@
|
||||
#include "interface/thread_pool.h"
|
||||
#include <c55/string_util.h>
|
||||
#include <c55/filesys.h>
|
||||
#pragma GCC diagnostic push
|
||||
#pragma GCC diagnostic ignored "-Wstrict-aliasing"
|
||||
#include <Variant.h>
|
||||
#include <Context.h>
|
||||
#include <Engine.h>
|
||||
@ -30,7 +28,6 @@
|
||||
#include <ResourceCache.h>
|
||||
#include <Octree.h>
|
||||
#include <Profiler.h>
|
||||
#pragma GCC diagnostic pop
|
||||
#include <iostream>
|
||||
#include <algorithm>
|
||||
#include <fstream>
|
||||
|
Loading…
x
Reference in New Issue
Block a user