spec/build/cpukit/optwarncc.yml: Add -Wold-style-declaration

Newer C versions require that the storage-class specifier like
static or _Thread_Local be the first thing in a declaration. Adding
this warning to the default set to let us eliminate violations.
This commit is contained in:
Joel Sherrill
2025-09-03 09:12:52 -05:00
parent 0dc1f06dbc
commit c0fba626cb

View File

@@ -14,6 +14,7 @@ default:
- -Wimplicit-function-declaration
- -Wstrict-prototypes
- -Wnested-externs
- -Wold-style-declaration
description: |
Warning flags passed to the C compiler
enabled-by: true