I'm trying to use cpp (ANSI-C preprocessor) to preprocess some non ANSI-C files.
These files contain assembly instruction in PicoBlaze syntax. PicoBlaze uses 'd to annotate the literal's radix. I would like to preprocess my files with cpp.
I get several:
<stdin>:228:163: warning: missing terminating ' character [enabled by default]
<stdin>:257:98: warning: missing terminating ' character [enabled by default]
...
warnings. How can I disable termination character checks for ' (or all characters) in cpp?
Here is my command line call:
cpp.exe -E main_Page0.psm
I think I found a solution by myself, but I'm still open for other suggestions.
Solution 1)
-wdisables all warnings -> dissatisfyingSolution 2)
-x assembler-with-cppsets cpp's source language to assembly.Default language is ANSI-C, if the file extension is unknown (equals
-x c).