mirror of
https://github.com/ChaiScript/ChaiScript.git
synced 2025-12-06 16:57:04 +08:00
Update release notes and fix compiler warnings
This commit is contained in:
parent
61dfb22af8
commit
f09b2d8731
@ -760,6 +760,7 @@ namespace chaiscript
|
||||
|
||||
#ifdef CHAISCRIPT_CLANG
|
||||
#pragma GCC diagnostic ignored "-Wtautological-compare"
|
||||
#pragma GCC diagnostic ignored "-Wsign-conversion"
|
||||
#endif
|
||||
|
||||
#endif
|
||||
@ -775,6 +776,7 @@ namespace chaiscript
|
||||
} else if (!unsigned_ && !longlong_ && u >= std::numeric_limits<long>::min() && u <= std::numeric_limits<long>::max()) {
|
||||
return const_var(static_cast<long>(u));
|
||||
} else if ((unsigned_ || base != 10) && !longlong_
|
||||
|
||||
&& u >= std::numeric_limits<unsigned long>::min()
|
||||
&& u <= std::numeric_limits<unsigned long>::max()) {
|
||||
return const_var(static_cast<unsigned long>(u));
|
||||
|
||||
@ -12,6 +12,7 @@ Current Version: 6.1.0
|
||||
* Various JSON fixes #377 #400 #409 #371 @totalgee @dinghram @arcoRocks
|
||||
* Various cleanups, bugfixes and warning fixes and minor performance improvements
|
||||
* Support for C++17 compilers!
|
||||
* Support for UTF8 BOM #439 @AlekMosingiewicz @MarioLiebisch
|
||||
|
||||
### Changes since 5.8.6
|
||||
|
||||
|
||||
@ -332,15 +332,15 @@ def assert_throws(desc, x)
|
||||
chai.eval(std::string(reinterpret_cast<const char *>(data), size));
|
||||
std::ofstream ofs("VALID/" + sha);
|
||||
ofs << input;
|
||||
} catch (const chaiscript::exception::eval_error &ee) {
|
||||
} catch (const chaiscript::exception::eval_error &) {
|
||||
std::ofstream ofs("EVAL_ERROR/" + sha);
|
||||
ofs << input;
|
||||
} catch (const chaiscript::Boxed_Value &e) {
|
||||
} catch (const chaiscript::Boxed_Value &) {
|
||||
std::ofstream ofs("BOXED_VALUE/" + sha);
|
||||
ofs << input;
|
||||
} catch (const chaiscript::exception::load_module_error &e) {
|
||||
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);
|
||||
ofs << input;
|
||||
} catch (...) {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user