2

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 1

2

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.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.