Suppressing Compiler Warnings from F Prime Core #3225
-
Hey everyone, Is there a standard FPrime way to suppress compiler flags from the core framework? I'm working on a project where I have additional compiler flags like For now, I wanted to focus on my own component's warnings but the only solution I've found to temporarily suppress fprime-specific warnings are to modify the function(fprime_setup_global_includes)
# Setup the global include directories that exist outside of the build cache
include_directories(SYSTEM "${FPRIME_FRAMEWORK_PATH}")
include_directories(SYSTEM "${FPRIME_CONFIG_DIR}")
include_directories(SYSTEM "${FPRIME_PROJECT_ROOT}")
# Setup the include directories that exist within the build-cache
include_directories(SYSTEM "${CMAKE_BINARY_DIR}")
include_directories(SYSTEM "${CMAKE_BINARY_DIR}/F-Prime")
include_directories(SYSTEM "${CMAKE_BINARY_DIR}/config")
endfunction(fprime_setup_global_includes) Marking the included directories as If there's a better way of doing this, I'd appreciate the insight. Thanks! |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
Yes there should be! Make sure you add new compiler flags after the following line in your project CMakeLists.txt: Line 33 in 0a822b5 If done afterwards those flags should only apply to your project code. e.g.
|
Beta Was this translation helpful? Give feedback.
Yes there should be! Make sure you add new compiler flags after the following line in your project CMakeLists.txt:
fprime/Ref/CMakeLists.txt
Line 33 in 0a822b5
If done afterwards those flags should only apply to your project code. e.g.