Add -Wmissing-variable-declarations to common warnings

This commit is contained in:
Martin Hořeňovský
2022-05-02 12:51:46 +02:00
parent 7752229105
commit d2cb934d28
3 changed files with 3 additions and 2 deletions

View File

@@ -33,7 +33,7 @@ struct foo {
#pragma clang diagnostic ignored "-Wglobal-constructors"
#endif
// Construct foo, but `foo::print` should not be run
foo f;
static foo f;
#if defined(__clang__)