6502.org Forum  Projects  Code  Documents  Tools  Forum
It is currently Sat Nov 23, 2024 1:29 am

All times are UTC




Post new topic Reply to topic  [ 4 posts ] 
Author Message
 Post subject: list of ca65 warnings
PostPosted: Wed Jun 01, 2022 4:33 am 
Offline

Joined: Sun Oct 03, 2021 2:17 am
Posts: 114
Is anyone aware of an exhaustive list of warnings that ca65 can emit?


Top
 Profile  
Reply with quote  
PostPosted: Wed Jun 01, 2022 7:07 am 
Offline

Joined: Sat Feb 19, 2022 10:14 pm
Posts: 147
I've never seen one. CC65 has an option --list-warnings which could be responsive, but ca65 doesn't have something similar. You can search the source code. They're spread throughout the individual files. Search for Warning, Internal, Error, Fatal.


Top
 Profile  
Reply with quote  
PostPosted: Wed Jun 01, 2022 4:37 pm 
Offline

Joined: Sun Oct 03, 2021 2:17 am
Posts: 114
Good find; there are a lot less warnings than other C compilers I'm used to. I opened https://github.com/cc65/cc65/issues/1757


Top
 Profile  
Reply with quote  
PostPosted: Wed Jun 01, 2022 6:27 pm 
Offline

Joined: Sat Feb 19, 2022 10:14 pm
Posts: 147
I looked at the source code for that option and it's not clear to me whether it lists all warnings or just a list of warning types. The latter is implied in the code, but that seems trivial since there seem to be less than a dozen types.

I know from a search of the source code there are about 1000 or so calls to the Warning, Internal, Error, Fatal routines, but many of these represent the same type of warning, just in different source files.


Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 4 posts ] 

All times are UTC


Who is online

Users browsing this forum: No registered users and 12 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to: