Skip to content

CI: Add more compiler warnings #1602

Open
@germasch

Description

@chuckatkins: Learning from the last minute MSVC troubles before the release, which were (in part) caused by variable length arrays on the stack, which is not a standard C++ feature, how about adding -pedantic-errors to the CI when the compiler is gcc/clang? This will catch this problem, and potentially avoid other non-standard use of C++.

It actually turns out that you'd have to add -Wno-gnu-zero-variadic-macro-arguments since gtest relies on that, and no fix appears to exist (yet): google/googletest#1419

A more limited approach would be to just avoid the use of variable length arrays with -Werror=vla.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

Labels

enhancementnot-a-bugtriage: lowThis issue is a nice-to-have if we can get to it but isn't holding anybody up.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions