Skip to content

Tests: Improve C compatibility of LoadCommand tests

Brad King requested to merge brad.king/cmake:tests-c99 into release

The previous code used char ** and const char ** types as if they were the same. But they are distinct types in C, so when passing these pointers as function arguments, their types have to match. Future C compilers will treat this as an error, similar to what C++ compilers do today.

This backports !9002 (merged) to the 3.28 release branch.

Author: @fweimer
Issue: #25633 (closed)

Edited by Brad King

Merge request reports