1.59 -pedantic

Generate warnings if code violates strict ISO C and ISO C++.

If you use the -pedantic option, the compiler generates warnings if your code uses any language feature that conflicts with strict ISO C or ISO C++.

Default

-pedantic is disabled by default.

Example

void foo(void)
{
    long long i; /* okay in nonstrict C90 */
}

Compiling this code with -pedantic generates a warning.

armclang --target=arm-arm-none-eabi -march=armv8-a file.c -c -std=c90 -pedantic

Note:

The -pedantic option is stricter than the -Wpedantic option.
Non-ConfidentialPDF file icon PDF version100067_0609_00_en
Copyright © 2014–2017 Arm Limited (or its affiliates). All rights reserved.