W8096 Incorrect use of #pragma code_seg("seg_name","seg_class") (C++)

From RAD Studio
Jump to: navigation, search

Go Up to Compiler Errors And Warnings (C++) Index


Pragma code_seg is similar to pragma codeseg, but with this one you can only modify the name and the class of a code segment. If you use the wrong syntax, you get this warning.

The following examples show the correct usage:

#pragma code_seg()
#pragma code_seg("foo")
#pragma code_seg("foo", "bar")

However, the following incorrect examples will all produce the warning:

#pragma code_seg(foo)
#pragma code_seg(foo, bar)