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 could be adding "Pragma:no-cache" to my response Headers? (Apache, PHP)

I have a website which maintenance I've inherited, which is a big hairy mess. One of the things I'm doing …

php apache caching http-headers pragma
Remove #pragma once warnings

I am using #pragma once in my .cpps and .hpps and because of that I get a warning for each …

c++ pragma gcc-warning
Is there a compiler hint for GCC to force branch prediction to always go a certain way?

For the Intel architectures, is there a way to instruct the GCC compiler to generate code that always forces branch …

c++ gcc intel pragma branch-prediction
What is the use of "#pragma section <XYZ>" in C?

What is the use of "#pragma section <XYZ>" in C ? I have come across C code file where …

c pragma
how to use #pragma clang diagnostics

I know that #pragma clang diagnostics can be used for ignoring some warnings generated by clang. But I don't know …

xcode clang pragma diagnostics
Pragmas in python

I'm reading bottle.py source code. It's a web framework, with only 3000+ lines python code. So cool. I found some …

python pragma
Is is possible to disable this warning in clang? warning: #pragma once in main file

warning: #pragma once in main file We're running our headers through clang to get a partial AST. Is it possible …

clang pragma suppress-warnings
What does '#pragma GCC optimize ("O3")' mean?

I came through this line in project source code written before a function. I want to know, what is the …

linux gcc pragma
Xcode - Using #pragma mark

I'm pretty sure this isn't a duplicate. Do you use #pragma mark? I've seen multiple ways, which is correct? #pragma …

xcode pragma
How do I use sqlite3 PRAGMA user_version in Objective-c?

I am trying to check the user_version of the sqlite DB. I have an admin tool to bump the …

iphone objective-c sqlite pragma