Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Compiler Warning (level 4) C4918
Collapse the table of content
Expand the table of content

Compiler Warning (level 4) C4918

Error Message

'character' : invalid character in pragma optimization list

An unknown character was found in the optimization list of an optimize pragma statement.

For example, the following statement generates C4918:

// C4918.cpp
// compile with: /W4
#pragma optimize("X", on) // C4918 expected
int main()
{
}

Community Additions

ADD
Show:
© 2015 Microsoft