Menu

#3512 warning: missing terminating ' character in asm comment

open
nobody
None
Preprocessor
5
2022-10-26
2022-10-26
Under4Mhz
No

sdcc gives a warning about mismatched quote in a assembler style comment.

sdcc -mmos6502 comment_quote.c
comment_quote.c:7:27: warning: missing terminating ' character
    7 | ; this comment has a quote' in it.
/// GPL 2.0 or later
void test_func() {

    __asm

; this comment has a quote' in it.

    __endasm;

}
sdcc -v
SDCC : mcs51/z80/z180/r2k/r2ka/r3ka/sm83/tlcs90/ez80_z80/z80n/ds390/pic16/pic14/TININative/ds400/hc08/s08/stm8/pdk13/pdk14/pdk15/mos6502 4.2.9 #13735 (Linux)

I'm tempted to make a joke about sdcc checking my grammar, but I won't.

Related

Bugs: #3513

Discussion

  • Philipp Klaus Krause

    • Category: other --> Preprocessor
     
  • Philipp Klaus Krause

    AFAIK, the warning about ' is emitted by the preprocessor.

     

Log in to post a comment.

MongoDB Logo MongoDB