diff options
author | Yann Gautier <yann.gautier@st.com> | 2019-03-06 10:58:13 +0100 |
---|---|---|
committer | Yann Gautier <yann.gautier@st.com> | 2019-03-11 10:09:51 +0100 |
commit | d4abda29fbc66739955573e439d59248cf356788 (patch) | |
tree | 84f1c72e38a572b374f4cc08f0338bd15e23cd43 /.checkpatch.conf | |
parent | c48d02bade88b07fa7f43aa44e5217f68e5d047f (diff) |
.checkpatch.conf: ignore BRACES warnings
MISRA C:2012 Rule 15.6 asks to have braces for the body of an if,
for, or while statement.
This conflicts with checkpatch, and the warning should then be ignored.
Change-Id: I22589b68b03f19a426d3bcbc10a99d4e4c76eced
Signed-off-by: Yann Gautier <yann.gautier@st.com>
Diffstat (limited to '.checkpatch.conf')
-rw-r--r-- | .checkpatch.conf | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/.checkpatch.conf b/.checkpatch.conf index 50ab7169..0512295a 100644 --- a/.checkpatch.conf +++ b/.checkpatch.conf @@ -1,5 +1,5 @@ # -# Copyright (c) 2016-2018, ARM Limited and Contributors. All rights reserved. +# Copyright (c) 2016-2019, ARM Limited and Contributors. All rights reserved. # # SPDX-License-Identifier: BSD-3-Clause # @@ -69,3 +69,7 @@ # "Use of volatile is usually wrong: see Documentation/volatile-considered-harmful.txt" # We allow the usage of the volatile keyword in TF. --ignore VOLATILE + +# BRACES reports this kind of messages: +# braces {} are not necessary for any arm of this statement +--ignore BRACES |