spec/build/cpukit/optwarn.yml: Warning flags to match current state

All but ~50 warnings have been fixed if you account for unmerged
MRs. These settings should give a warning free build given the
current state.

       Warnings by Type
=================================
   2 -Wshift-negative-value
   3 -Wenum-conversion
   7 -Wcast-function-type
   7 -Wmissing-field-initializers
   8 -Wclobbered
  32 -Wtype-limits
This commit is contained in:
Joel Sherrill
2025-10-17 15:05:37 -05:00
committed by Gedare Bloom
parent b2ca47e5a1
commit ed38fadfbe

View File

@@ -12,7 +12,20 @@ default:
- enabled-by: true
value:
- -Wall
- -Wempty-body
- -Wextra
# We currently have not addressed all of the cases for these warnings.
# Use -Wno- for the ones remaining. There are ~50 left to resolve
# Afor -Wextra
# -Wclobbered is issue #5364
# -Wmissing-field-initializers is resolved by MR801
- -Wno-cast-function-type
- -Wno-clobbered
- -Wno-enum-conversion
- -Wno-ignored-qualifiers
- -Wno-missing-field-initializers
- -Wno-shift-negative-value
- -Wno-sign-compare
- -Wno-type-limits
- -Werror
description: |
Warning flags passed to the C and C++ compiler