spec/build/cpukit/optwarn.yml: Add -Wcalloc-transposed-args

Add check for calls to calloc() having the size (sizeof) and
number of elements (int) swapped.
This commit is contained in:
Joel Sherrill
2025-09-03 16:36:10 -05:00
committed by Gedare Bloom
parent 017ec9440e
commit 71670c9cb0

View File

@@ -12,6 +12,7 @@ default:
- enabled-by: true
value:
- -Wall
- -Wcalloc-transposed-args
- -Werror
description: |
Warning flags passed to the C and C++ compiler