mirror of
https://gitlab.rtems.org/rtems/rtos/rtems.git
synced 2025-11-16 12:34:45 +00:00
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:
committed by
Gedare Bloom
parent
017ec9440e
commit
71670c9cb0
@@ -12,6 +12,7 @@ default:
|
||||
- enabled-by: true
|
||||
value:
|
||||
- -Wall
|
||||
- -Wcalloc-transposed-args
|
||||
- -Werror
|
||||
description: |
|
||||
Warning flags passed to the C and C++ compiler
|
||||
|
||||
Reference in New Issue
Block a user