Top "Pragma" questions

The #pragma directives offer a way for each compiler to offer machine- and operating system-specific features while retaining overall compatibility with the C and C++ languages.

What does the HTTP header Pragma: Public mean?

What does the HTTP header Pragma: Public mean?

http pragma
How can I use #pragma message() so that the message points to the file(lineno)?

In order to add 'todo' items into my code, I want to put a message in the compiler output. I …

c++ visual-studio-2010 pragma line-numbers predefined-macro
Pragma in define macro

Is there some way to embed pragma statement in macro with other statements? I am trying to achieve something like: #…

c-preprocessor pragma stringification
In gcc, how to mute the -fpermissive warning?

I am including a file from a third-party library that raises an error that can be downgraded to a warning …

c++ gcc warnings pragma
Tell gcc to specifically unroll a loop

How can I tell GCC to unroll a particular loop? I have used the CUDA SDK where loops can be …

c gcc pragma unroll
What does #pragma unroll do exactly? Does it affect the number of threads?

I'm new to CUDA, and I can't understand loop unrolling. I've written a piece of code to understand the technique __…

cuda nvidia pragma loop-unrolling
List of #pragma warning disable codes and what they mean

The syntax for disabling warnings is as follows: #pragma warning disable 414, 3021 Or, expressed more generally: #pragma warning disable [CSV list …

c# c-preprocessor pragma
How to silence a warning in swift

I have a piece of code which is generating lots of warnings (deprecated API) Using clang* I could do #pragma …

swift pragma swift2
#pragma warning disable & restore

I have used c# to create a First Project. I have many warning errors and all these warning errors are …

c# .net compiler-warnings pragma
Is there a way to disable all warnings with a pragma?

I've started a new project and have decided to make sure it builds cleanly with the /Wall option enabled. The …

c++ visual-c++ pragma