mirror of
https://github.com/ChaiScript/ChaiScript.git
synced 2026-05-01 03:19:28 +08:00
Requested by @lefticus in PR #687 review. Fix warnings-as-errors failures on all three compiler families: - GCC Release: replace strncpy with memcpy in mystrdup (stringop-truncation) - GCC ASAN+UBSAN Release: add bounds check in Operator() before indexing m_operators array — the recursive call could exceed the array size of 12, which is an actual out-of-bounds bug, not just a warning - GCC: downgrade maybe-uninitialized to warning (false positive in libstdc++ std::regex under sanitizers + optimizations) - AppleClang: add default cases to all switch statements on Common_Types in boxed_number.hpp (Wswitch-default) - AppleClang: mark Dispatch_Engine move ctor/assignment as deleted since shared_mutex is non-movable (Wdefaulted-function-deleted) - AppleClang on macOS: suppress Wpoison-system-directories for /usr/local/include - MSVC Release: suppress C4702 (unreachable code) around if-constexpr in proxy_functions_detail.hpp - Fix unused variable warnings in emscripten_eval_test.cpp when asserts are disabled in Release mode Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com> |
||
|---|---|---|
| .. | ||
| any.hpp | ||
| bad_boxed_cast.hpp | ||
| bind_first.hpp | ||
| bootstrap_stl.hpp | ||
| bootstrap.hpp | ||
| boxed_cast_helper.hpp | ||
| boxed_cast.hpp | ||
| boxed_number.hpp | ||
| boxed_value.hpp | ||
| callable_traits.hpp | ||
| dispatchkit.hpp | ||
| dynamic_object_detail.hpp | ||
| dynamic_object.hpp | ||
| exception_specification.hpp | ||
| function_call_detail.hpp | ||
| function_call.hpp | ||
| function_params.hpp | ||
| function_signature.hpp | ||
| handle_return.hpp | ||
| operators.hpp | ||
| proxy_constructors.hpp | ||
| proxy_functions_detail.hpp | ||
| proxy_functions.hpp | ||
| register_function.hpp | ||
| short_alloc.hpp | ||
| type_conversions.hpp | ||
| type_info.hpp | ||