Make warnings stricter on windows and clean up all legit warnings in our code.

This commit is contained in:
Jason Turner
2010-07-30 18:06:17 +00:00
parent b9ae4cd528
commit b971ee44ad
6 changed files with 23 additions and 20 deletions

View File

@@ -17,7 +17,6 @@
#include <chaiscript/chaiscript.hpp>
void print_help() {
std::cout << "ChaiScript evaluator. To evaluate an expression, type it and press <enter>." << std::endl;
std::cout << "Additionally, you can inspect the runtime system using:" << std::endl;
@@ -58,8 +57,19 @@ int main(int argc, char *argv[]) {
std::vector<std::string> usepaths;
std::vector<std::string> modulepaths;
// Disable deprecation warning for getenv call.
#ifdef BOOST_MSVC
#pragma warning(push)
#pragma warning(disable : 4996)
#endif
const char *usepath = getenv("CHAI_USE_PATH");
const char *modulepath = getenv("CHAI_MODULE_PATH");
#ifdef BOOST_MSVC
#pragma warning(pop)
#endif
usepaths.push_back("");