Merge pull request #2382 from TheMagnetar/master

Removed pedantic errors and redefinition of M_PI variable
This commit is contained in:
Thomas Kooi 2015-11-26 16:14:09 +01:00
commit 60684c584a
15 changed files with 20 additions and 21 deletions

View File

@ -20,7 +20,7 @@ option(USE_STATIC_LINKING "USE_STATIC_LINKING" ON)
if(CMAKE_COMPILER_IS_GNUCXX)
SET(CMAKE_CXX_FLAGS "-std=c++11 -march=i686 -m32 -O2 -s -fPIC -fpermissive")
SET(CMAKE_CXX_FLAGS "-std=c++11 -pedantic -pedantic-errors -march=i686 -m32 -O2 -s -fPIC -fpermissive")
set(CMAKE_FIND_LIBRARY_SUFFIXES ".a")
set(CMAKE_SHARED_LINKER_FLAGS "-static-libgcc -static-libstdc++")
elseif (CMAKE_CXX_COMPILER_ID MATCHES "Clang")

View File

@ -5,7 +5,6 @@
#include <unordered_map>
#include <random>
#define M_PI 3.14159265358979323846f
#define GRAVITY 9.80665f
#define ABSOLUTE_ZERO_IN_CELSIUS -273.15f
#define KELVIN(t) (t - ABSOLUTE_ZERO_IN_CELSIUS)

View File

@ -21,7 +21,7 @@
extern "C" {
EXPORT void __stdcall RVExtension(char *output, int outputSize, const char *function);
};
}
std::vector<std::string> splitString(const std::string & input) {
std::istringstream ss(input);

View File

@ -15,7 +15,7 @@
extern "C" {
EXPORT void __stdcall RVExtension(char *output, int outputSize, const char *function);
};
}
std::string gClipboardData;

View File

@ -67,5 +67,5 @@ namespace ace {
animation::~animation() {
}
};
};
}
}

View File

@ -65,5 +65,5 @@ namespace ace {
//ace::vector3<float> axis_dir;
};
typedef std::shared_ptr<animation> animation_p;
};
};
}
}

View File

@ -53,5 +53,5 @@ namespace ace {
};
typedef std::shared_ptr<model> model_p;
};
};
}
}

View File

@ -70,5 +70,5 @@ namespace ace {
};
typedef std::shared_ptr<model_info> model_info_p;
};
};
}
}

View File

@ -13,5 +13,5 @@ namespace ace {
model_p load(const std::string &);
};
};
};
}
}

View File

@ -32,5 +32,5 @@ namespace ace {
std::vector<bone_p> all_bones;
};
typedef std::shared_ptr<skeleton> skeleton_p;
};
};
}
}

View File

@ -31,4 +31,4 @@ namespace ace {
};
typedef transform_matrix_base<float> transform_matrix;
};
}

View File

@ -168,4 +168,4 @@ namespace ace {
T _x;
T _y;
};
};
}

View File

@ -27,7 +27,7 @@
extern "C" {
EXPORT void __stdcall RVExtension(char *output, int outputSize, const char *function);
};
}
std::vector<std::string> splitString(std::string input) {
std::istringstream ss(input);

View File

@ -14,7 +14,7 @@
extern "C" {
EXPORT void __stdcall RVExtension(char *output, int outputSize, const char *function);
};
}
std::vector<std::string> parseExtensionInput(const std::string& input)
{

View File

@ -18,7 +18,7 @@
extern "C" {
__declspec (dllexport) void __stdcall RVExtension(char *output, int outputSize, const char *function);
};
}
std::string getImagePathFromStructuredText(const std::string & input) {
std::string returnValue = "";