We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
/work2/00434/eijkhout/msgsl/msgsl-4.0.0/tests/span_tests.cpp:333:33: error: suggest braces around initialization of subobject [-Werror,-Wmissing-braces] int arr3d[2][3][2] = {1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12}; ^~~~ { }
Can I turn off the Werror? Alternatively, this seems to be non-essential testing code, so can I not build the tests?
Werror
The text was updated successfully, but these errors were encountered:
Hi @VictorEijkhout, I'll bring this up in the next maintainers' sync.
Sorry, something went wrong.
Alternatively, this seems to be non-essential testing code, so can I not build the tests?
You can set -D GSL_TEST=OFF when configuring the CMake build.
-D GSL_TEST=OFF
This is also what vcpkg does in it's portfile.
vcpkg
portfile
https://github.com/microsoft/vcpkg/blob/b40de44891dc1cab11d4722094ae44807a837b98/ports/ms-gsl/portfile.cmake#L13
Maintainers call: Yes this should be
int arr3d[2][3][2] = { { {1, 2}, {3, 4}, {5, 6} }, { {7, 8}, {9, 10}, {11, 12} } };
d-winsor
Successfully merging a pull request may close this issue.
Can I turn off the
Werror
? Alternatively, this seems to be non-essential testing code, so can I not build the tests?The text was updated successfully, but these errors were encountered: