use pedantic (#412)
* use pedantic now that memory tools is in another repo Signed-off-by: Mikael Arguedas <mikael.arguedas@gmail.com> * add pragma to ignore tinydir warning Signed-off-by: Mikael Arguedas <mikael.arguedas@gmail.com>
This commit is contained in:
parent
64a1412594
commit
121f9708c2
3 changed files with 12 additions and 4 deletions
|
@ -27,7 +27,7 @@ if(NOT CMAKE_CXX_STANDARD)
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
if(CMAKE_COMPILER_IS_GNUCXX OR CMAKE_CXX_COMPILER_ID MATCHES "Clang")
|
if(CMAKE_COMPILER_IS_GNUCXX OR CMAKE_CXX_COMPILER_ID MATCHES "Clang")
|
||||||
add_compile_options(-Wall -Wextra)
|
add_compile_options(-Wall -Wextra -Wpedantic)
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
set(${PROJECT_NAME}_sources
|
set(${PROJECT_NAME}_sources
|
||||||
|
|
|
@ -47,7 +47,6 @@ extern "C"
|
||||||
|
|
||||||
#include "./common.h"
|
#include "./common.h"
|
||||||
#include "./context_impl.h"
|
#include "./context_impl.h"
|
||||||
#include "tinydir/tinydir.h"
|
|
||||||
|
|
||||||
#define ROS_SECURITY_STRATEGY_VAR_NAME "ROS_SECURITY_STRATEGY"
|
#define ROS_SECURITY_STRATEGY_VAR_NAME "ROS_SECURITY_STRATEGY"
|
||||||
#define ROS_SECURITY_ENABLE_VAR_NAME "ROS_SECURITY_ENABLE"
|
#define ROS_SECURITY_ENABLE_VAR_NAME "ROS_SECURITY_ENABLE"
|
||||||
|
|
|
@ -13,11 +13,20 @@
|
||||||
// limitations under the License.
|
// limitations under the License.
|
||||||
|
|
||||||
#include "rcl/security_directory.h"
|
#include "rcl/security_directory.h"
|
||||||
#include "tinydir/tinydir.h"
|
|
||||||
|
#include "rcl/error_handling.h"
|
||||||
#include "rcutils/filesystem.h"
|
#include "rcutils/filesystem.h"
|
||||||
#include "rcutils/get_env.h"
|
#include "rcutils/get_env.h"
|
||||||
#include "rcutils/format_string.h"
|
#include "rcutils/format_string.h"
|
||||||
#include "rcl/error_handling.h"
|
|
||||||
|
#ifdef __clang__
|
||||||
|
# pragma clang diagnostic push
|
||||||
|
# pragma clang diagnostic ignored "-Wembedded-directive"
|
||||||
|
#endif
|
||||||
|
#include "tinydir/tinydir.h"
|
||||||
|
#ifdef __clang__
|
||||||
|
# pragma clang diagnostic pop
|
||||||
|
#endif
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* A security lookup function takes in the node's name, namespace, a security root directory and an allocator;
|
* A security lookup function takes in the node's name, namespace, a security root directory and an allocator;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue