leftibot 88d3124272 Address review: fix all compiler warnings across GCC, Clang, and MSVC
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>
2026-04-14 12:06:25 -06:00
..
chaiscript_algebraic.hpp change .clang-format and reformat code with clang-format 11 2021-05-24 10:44:15 +02:00
chaiscript_common.hpp Fix #607: Remove unnecessary forward declarations that cause C++20 build failures (#647) 2026-04-11 13:42:40 -06:00
chaiscript_engine.hpp Fix #518: Enable warnings as errors and fix all compiler warnings 2026-04-13 20:12:15 -06:00
chaiscript_eval.hpp Fix #61: Comprehensive exception test suite and fix for silently swallowed exceptions (#681) 2026-04-13 19:05:55 -06:00
chaiscript_optimizer.hpp Fix #635: Segfault in async result via dangling pointer from optimized for loop (#671) 2026-04-12 16:47:06 -06:00
chaiscript_parser.hpp Address review: fix all compiler warnings across GCC, Clang, and MSVC 2026-04-14 12:06:25 -06:00
chaiscript_posix.hpp change .clang-format and reformat code with clang-format 11 2021-05-24 10:44:15 +02:00
chaiscript_prelude_docs.hpp Fix #12: Document reflection and introspection capabilities 2026-04-09 21:43:56 -06:00
chaiscript_prelude.hpp change .clang-format and reformat code with clang-format 11 2021-05-24 10:44:15 +02:00
chaiscript_tracer.hpp change .clang-format and reformat code with clang-format 11 2021-05-24 10:44:15 +02:00
chaiscript_unknown.hpp change .clang-format and reformat code with clang-format 11 2021-05-24 10:44:15 +02:00
chaiscript_windows.hpp Fix #518: Enable warnings as errors and fix all compiler warnings 2026-04-13 20:12:15 -06:00