Merge pull request 'Warning on local shadowing can be disabled optionally for GCC' (#357) from eive/fsfw:eive/shadow-local-warning into development
Reviewed-on: fsfw/fsfw#357
This commit is contained in:
commit
2f64c16a8a
@ -116,7 +116,15 @@ if(CMAKE_CXX_COMPILER_ID STREQUAL "GNU")
|
|||||||
-Wno-unused-parameter
|
-Wno-unused-parameter
|
||||||
-Wno-psabi
|
-Wno-psabi
|
||||||
)
|
)
|
||||||
|
|
||||||
|
if(NOT DEFINED WARNING_SHADOW_LOCAL)
|
||||||
|
option(WARNING_SHADOW_LOCAL "Show shadows declarations warning." ON)
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
|
if(WARNING_SHADOW_LOCAL)
|
||||||
|
list(APPEND WARNING_FLAGS "-Wshadow=local")
|
||||||
|
endif()
|
||||||
|
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
if(CMAKE_CXX_COMPILER_ID STREQUAL "MSVC")
|
if(CMAKE_CXX_COMPILER_ID STREQUAL "MSVC")
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
#ifndef FSFW_DATAPOOLLOCAL_POOLREADHELPER_H_
|
#ifndef FSFW_DATAPOOL_POOLREADHELPER_H_
|
||||||
#define FSFW_DATAPOOLLOCAL_POOLREADHELPER_H_
|
#define FSFW_DATAPOOL_POOLREADHELPER_H_
|
||||||
|
|
||||||
#include "LocalPoolDataSetBase.h"
|
#include "ReadCommitIF.h"
|
||||||
#include "../serviceinterface/ServiceInterface.h"
|
#include "../serviceinterface/ServiceInterface.h"
|
||||||
#include <FSFWConfig.h>
|
#include <FSFWConfig.h>
|
||||||
|
|
||||||
@ -48,4 +48,4 @@ private:
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
#endif /* FSFW_DATAPOOLLOCAL_POOLREADHELPER_H_ */
|
#endif /* FSFW_DATAPOOL_POOLREADHELPER_H_ */
|
Loading…
Reference in New Issue
Block a user