Clean up a few warnings found in Windows.

This commit is contained in:
Jason Turner
2012-05-28 10:48:19 -06:00
parent db8863c736
commit ed15cc1730
4 changed files with 8 additions and 7 deletions

View File

@@ -18,6 +18,7 @@
#include <vector> #include <vector>
#include <iostream> #include <iostream>
#include <deque> #include <deque>
#include <list>
#include "boxed_value.hpp" #include "boxed_value.hpp"
#include "type_info.hpp" #include "type_info.hpp"

View File

@@ -806,7 +806,7 @@ namespace chaiscript
virtual Boxed_Value eval_internal(chaiscript::detail::Dispatch_Engine &t_ss) { virtual Boxed_Value eval_internal(chaiscript::detail::Dispatch_Engine &t_ss) {
Boxed_Value match_value; Boxed_Value match_value;
bool breaking = false; bool breaking = false;
int currentCase = 1; size_t currentCase = 1;
bool hasMatched = false; bool hasMatched = false;
chaiscript::eval::detail::Scope_Push_Pop spp(t_ss); chaiscript::eval::detail::Scope_Push_Pop spp(t_ss);

View File

@@ -301,8 +301,8 @@ int main()
passed &= built_in_type_test<int>(5, true); passed &= built_in_type_test<int>(5, true);
passed &= built_in_type_test<double>(1.1, true); passed &= built_in_type_test<double>(1.1, true);
passed &= built_in_type_test<char>('a', true); passed &= built_in_type_test<char>('a', true);
passed &= built_in_type_test<uint8_t>('a', true); passed &= built_in_type_test<boost::uint8_t>('a', true);
passed &= built_in_type_test<int64_t>('a', true); passed &= built_in_type_test<boost::int64_t>('a', true);
passed &= built_in_type_test<bool>(false, false); passed &= built_in_type_test<bool>(false, false);
passed &= built_in_type_test<std::string>("Hello World", false); passed &= built_in_type_test<std::string>("Hello World", false);

View File

@@ -60,7 +60,7 @@ int test_5()
try { try {
chai.eval("throw(runtime_error(\"error\"))", chaiscript::exception_specification<int, double, float, const std::string &, const std::exception &>()); chai.eval("throw(runtime_error(\"error\"))", chaiscript::exception_specification<int, double, float, const std::string &, const std::exception &>());
} catch (const double e) { } catch (const double) {
std::cout << "test_5 failed with double" << std::endl; std::cout << "test_5 failed with double" << std::endl;
return EXIT_FAILURE; return EXIT_FAILURE;
} catch (int) { } catch (int) {
@@ -72,7 +72,7 @@ int test_5()
} catch (const std::string &) { } catch (const std::string &) {
std::cout << "test_5 failed with string" << std::endl; std::cout << "test_5 failed with string" << std::endl;
return EXIT_FAILURE; return EXIT_FAILURE;
} catch (const std::exception &e) { } catch (const std::exception &) {
return EXIT_SUCCESS; return EXIT_SUCCESS;
} }
@@ -95,10 +95,10 @@ int test_unhandled()
} catch (float) { } catch (float) {
std::cout << "test_unhandled failed with float" << std::endl; std::cout << "test_unhandled failed with float" << std::endl;
return EXIT_FAILURE; return EXIT_FAILURE;
} catch (const std::exception &e) { } catch (const std::exception &) {
std::cout << "test_unhandled failed with std::exception" << std::endl; std::cout << "test_unhandled failed with std::exception" << std::endl;
return EXIT_FAILURE; return EXIT_FAILURE;
} catch (const chaiscript::Boxed_Value &bv) { } catch (const chaiscript::Boxed_Value &) {
return EXIT_SUCCESS; return EXIT_SUCCESS;
} }