I'm using Flycheck with GCC as my checker for C. However, Flycheck gives warnings on OpenMP pragmas, regardless of whether they're correct or not! Is there any setting I can change to turn off these warnings?
1 Answer
As of Flycheck 0.21 you can now use the new option flycheck-gcc-openmp
to enable OpenMP in GCC for C and C++.
To enable OpenMP globally, add the following to your init.el
:
(setq-default flycheck-gcc-openmp t)
I'd recommend to set this variable with File Variables or Directory Variables, for each file or project where you'd like to use OpenMP.
Disclaimer: I'm the Flycheck maintainer.