??? 10/08/09 11:09 Read: times |
#169530 - Just main() is ancient C Responding to: ???'s previous message |
On one hand, you should report this bug, together with the sample code that trigger it.
On the other hand - modern C code should not have functions with an implied int return type and with empty parentheses. C++ would consider () to be a function that takes zero parameters. But ancient C standard would just consider it a function with unknown number of parameters of unknown type. Consider having "int main(void)" or "void main(void)" instead. |
Topic | Author | Date |
SDCC Internal Error | 01/01/70 00:00 | |
No mention of a source line number for the input file? | 01/01/70 00:00 | |
NO | 01/01/70 00:00 | |
You have broken SDCC? | 01/01/70 00:00 | |
I've Searched SDCC forums | 01/01/70 00:00 | |
May be I am the first to see this. | 01/01/70 00:00 | |
2.6.0? | 01/01/70 00:00 | |
I tried with newest SDCC snapshot and submitted a bug | 01/01/70 00:00 | |
Fixed | 01/01/70 00:00 | |
That's service for you!![]() | 01/01/70 00:00 | |
Got It!! | 01/01/70 00:00 | |
Just main() is ancient C | 01/01/70 00:00 | |
Isolate the code block, use cpp | 01/01/70 00:00 |