coding_guideline: Add optional flag to check override initialization

This enforce Rule 9.4

"""
An element of an object shall not be initialized more than once
"""

Signed-off-by: Flavio Ceolin <flavio.ceolin@intel.com>
This commit is contained in:
Flavio Ceolin 2020-08-25 12:44:57 -07:00 committed by Anas Nashif
parent d34c44d724
commit 438adb0109
2 changed files with 2 additions and 0 deletions

View File

@ -122,6 +122,7 @@ macro(toolchain_cc_warning_error_coding_guideline_check dest_var_name)
-Wvla
-Wimplicit-fallthrough
-Wconversion
-Woverride-init
)
endif()
endmacro()

View File

@ -115,6 +115,7 @@ macro(toolchain_cc_warning_error_coding_guideline_check dest_var_name)
-Wvla
-Wimplicit-fallthrough=2
-Wconversion
-Woverride-init
)
endif()
endmacro()