mirror of
https://github.com/espressif/esp-idf.git
synced 2024-10-05 20:47:46 -04:00
argtable: move GCC-specific pragma to cmake/make files
...and only add it when building with GCC.
This commit is contained in:
parent
d0f960a634
commit
82f0488f77
@ -6,3 +6,7 @@ idf_component_register(SRCS "commands.c"
|
|||||||
INCLUDE_DIRS "."
|
INCLUDE_DIRS "."
|
||||||
REQUIRES vfs
|
REQUIRES vfs
|
||||||
PRIV_REQUIRES driver)
|
PRIV_REQUIRES driver)
|
||||||
|
|
||||||
|
if(CMAKE_C_COMPILER_ID MATCHES "GNU")
|
||||||
|
set_source_files_properties(argtable3/argtable3.c PROPERTIES COMPILE_FLAGS -Wno-clobbered)
|
||||||
|
endif()
|
||||||
|
@ -30,8 +30,6 @@
|
|||||||
|
|
||||||
#include "argtable3.h"
|
#include "argtable3.h"
|
||||||
|
|
||||||
#pragma GCC diagnostic ignored "-Wclobbered"
|
|
||||||
|
|
||||||
/*******************************************************************************
|
/*******************************************************************************
|
||||||
* This file is part of the argtable3 library.
|
* This file is part of the argtable3 library.
|
||||||
*
|
*
|
||||||
|
@ -1,2 +1,4 @@
|
|||||||
COMPONENT_ADD_INCLUDEDIRS := .
|
COMPONENT_ADD_INCLUDEDIRS := .
|
||||||
COMPONENT_SRCDIRS := linenoise argtable3 .
|
COMPONENT_SRCDIRS := linenoise argtable3 .
|
||||||
|
|
||||||
|
argtable3/argtable3.o: CFLAGS += -Wno-clobbered
|
||||||
|
Loading…
x
Reference in New Issue
Block a user