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:
parent
d34c44d724
commit
438adb0109
|
@ -122,6 +122,7 @@ macro(toolchain_cc_warning_error_coding_guideline_check dest_var_name)
|
|||
-Wvla
|
||||
-Wimplicit-fallthrough
|
||||
-Wconversion
|
||||
-Woverride-init
|
||||
)
|
||||
endif()
|
||||
endmacro()
|
||||
|
|
|
@ -115,6 +115,7 @@ macro(toolchain_cc_warning_error_coding_guideline_check dest_var_name)
|
|||
-Wvla
|
||||
-Wimplicit-fallthrough=2
|
||||
-Wconversion
|
||||
-Woverride-init
|
||||
)
|
||||
endif()
|
||||
endmacro()
|
||||
|
|
Loading…
Reference in New Issue