Update release notes and fix compiler warnings

This commit is contained in:
Jason Turner 2018-05-26 20:29:25 -06:00
parent 61dfb22af8
commit f09b2d8731
3 changed files with 8 additions and 5 deletions

View File

@ -760,6 +760,7 @@ namespace chaiscript
#ifdef CHAISCRIPT_CLANG #ifdef CHAISCRIPT_CLANG
#pragma GCC diagnostic ignored "-Wtautological-compare" #pragma GCC diagnostic ignored "-Wtautological-compare"
#pragma GCC diagnostic ignored "-Wsign-conversion"
#endif #endif
#endif #endif
@ -775,6 +776,7 @@ namespace chaiscript
} else if (!unsigned_ && !longlong_ && u >= std::numeric_limits<long>::min() && u <= std::numeric_limits<long>::max()) { } else if (!unsigned_ && !longlong_ && u >= std::numeric_limits<long>::min() && u <= std::numeric_limits<long>::max()) {
return const_var(static_cast<long>(u)); return const_var(static_cast<long>(u));
} else if ((unsigned_ || base != 10) && !longlong_ } else if ((unsigned_ || base != 10) && !longlong_
&& u >= std::numeric_limits<unsigned long>::min() && u >= std::numeric_limits<unsigned long>::min()
&& u <= std::numeric_limits<unsigned long>::max()) { && u <= std::numeric_limits<unsigned long>::max()) {
return const_var(static_cast<unsigned long>(u)); return const_var(static_cast<unsigned long>(u));

View File

@ -12,6 +12,7 @@ Current Version: 6.1.0
* Various JSON fixes #377 #400 #409 #371 @totalgee @dinghram @arcoRocks * Various JSON fixes #377 #400 #409 #371 @totalgee @dinghram @arcoRocks
* Various cleanups, bugfixes and warning fixes and minor performance improvements * Various cleanups, bugfixes and warning fixes and minor performance improvements
* Support for C++17 compilers! * Support for C++17 compilers!
* Support for UTF8 BOM #439 @AlekMosingiewicz @MarioLiebisch
### Changes since 5.8.6 ### Changes since 5.8.6

View File

@ -332,15 +332,15 @@ def assert_throws(desc, x)
chai.eval(std::string(reinterpret_cast<const char *>(data), size)); chai.eval(std::string(reinterpret_cast<const char *>(data), size));
std::ofstream ofs("VALID/" + sha); std::ofstream ofs("VALID/" + sha);
ofs << input; ofs << input;
} catch (const chaiscript::exception::eval_error &ee) { } catch (const chaiscript::exception::eval_error &) {
std::ofstream ofs("EVAL_ERROR/" + sha); std::ofstream ofs("EVAL_ERROR/" + sha);
ofs << input; ofs << input;
} catch (const chaiscript::Boxed_Value &e) { } catch (const chaiscript::Boxed_Value &) {
std::ofstream ofs("BOXED_VALUE/" + sha); std::ofstream ofs("BOXED_VALUE/" + sha);
ofs << input; ofs << input;
} catch (const chaiscript::exception::load_module_error &e) { } catch (const chaiscript::exception::load_module_error &e) {
std::cout << "Unhandled module load error\n" << e.what() << '\n'; std::cout << "Unhandled module load error\n" << e.what() << '\n';
} catch (const std::exception &e) { } catch (const std::exception &) {
std::ofstream ofs("STD_EXCEPTION/" + sha); std::ofstream ofs("STD_EXCEPTION/" + sha);
ofs << input; ofs << input;
} catch (...) { } catch (...) {