Non-Confidential | ![]() | DUI0774J | ||
| ||||
Home > Compiler Command-line Options > -pedantic-errors |
Generate errors if code violates strict ISO C and ISO C++.
If you use the -pedantic-errors
option, the compiler does not use any language feature that conflicts with strict
ISO C or ISO C++. The compiler generates an error if your code violates strict ISO
language standard.
-pedantic-errors
is disabled by default.
void foo(void) { long long i; /* okay in nonstrict C90 */ }
Compiling this code with -pedantic-errors
generates an error:
armclang --target=arm-arm-none-eabi -march=armv8-a file.c -c -std=c90 -pedantic-errors