Skip to content
Commit b07ccfd4 authored by Lingkai Dong's avatar Lingkai Dong
Browse files

cppcheck: Fix support for C language



Cppcheck automatically detects a source file's language based on its
extension and applies different rules to C and C++. Forcing language
to always C++ results in false positives when checking C files:

    templates/examples/mbedtls/main.c:239:34: warning: C-style pointer casting [cstyleCast]

Also, add C99 as standard for C files.

Signed-off-by: Lingkai Dong's avatarLingkai Dong <lingkai.dong@arm.com>
parent 520370f8
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment