Menu

#3897 No warning about prototype conflict

closed
None
Front-end
5
2025-12-01
2025-11-20
No

There is no warning about prototype conflict.

void f(char *a);
void f(__code int *a);
c:\firmware_rtd2660\bug4>sdcc -v
SDCC : mcs51/z80/z180/r2k/r2ka/r3ka/sm83/tlcs90/ez80_z80/z80n/r800/ds390/pic16/pic14/TININative/ds400/hc08/s08/stm8/pdk13/pdk14/pdk15/mos6502/mos65c02/f8 TD- 4.5.1 #15257 (MINGW64)
published under GNU General Public License (GPL)

c:\firmware_rtd2660\bug4>sdcc -mmcs51 --opt-code-size --fverbose-asm -c -o main.rel main.c
main.c:6: error 78: incompatible types
from type 'char near* fixed'
  to type 'int __code* fixed'
2 Attachments

Discussion

  • Philipp Klaus Krause

    • status: open --> closed
    • assigned_to: Philipp Klaus Krause
    • Category: other --> Front-end
     

Log in to post a comment.