mirror of
https://gitlab.rtems.org/rtems/rtos/rtems.git
synced 2025-12-26 06:08:20 +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
|
- enabled-by: true
|
||||||
value:
|
value:
|
||||||
- -Wall
|
- -Wall
|
||||||
|
- -Wcalloc-transposed-args
|
||||||
- -Werror
|
- -Werror
|
||||||
description: |
|
description: |
|
||||||
Warning flags passed to the C and C++ compiler
|
Warning flags passed to the C and C++ compiler
|
||||||
|
|||||||
Reference in New Issue
Block a user