Comment
The patch only relaxes a compiler warning for the test target when using GCC: it adds -Wno-error=array-bounds to argagg_test, with a comment referencing an upstream issue. This does not affect installed package artifacts, does not introduce network access, privilege changes, persistence, or suspicious build-time execution. The change is limited to test compilation behavior and is a reasonable workaround for a known false positive.
@@ -0,0 +1,15 @@
+diff --git a/CMakeLists.txt b/CMakeLists.txt
+index 558cf34..4371969 100644
+--- a/CMakeLists.txt
++++ b/CMakeLists.txt
+@@ -146,6 +146,10 @@ if( ARGAGG_BUILD_TESTS )
+ COMPILE_FLAGS "${ARGAGG_TEST_COMPILE_FLAGS}"
+ RUNTIME_OUTPUT_DIRECTORY "${CMAKE_BINARY_DIR}/bin"
+ )
++ if( CMAKE_CXX_COMPILER_ID STREQUAL "GNU" )
++ # GCC false positive, see https://github.com/vietjtnguyen/argagg/issues/46
++ target_compile_options( argagg_test PRIVATE -Wno-error=array-bounds )
++ endif()
+ add_test(
+ NAME argagg_test
+ COMMAND argagg_test