-
Notifications
You must be signed in to change notification settings - Fork 56
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add -fstrict-headers #235
Add -fstrict-headers #235
Conversation
|
I added the unused include error too but it seems like it might cause a lot of false positives. Could you test it out and see how it feels? Also should the direct include rule apply to macros too? |
Hooolyyyy mackerel. I just built Janet with the latest commit, and it threw 215 errors, of which only 7 were from the project itself, and maybe one was a true positive. musl isn't quite as bad on the surface, but tedious to trace. I've changed my mind. (But yes, I do think the direct include rule should apply to macros. I'm thinking of the dev who has to track down all the |
3e39cc7
to
3cf6297
Compare
@EleanorNB I re-added the unused import warning with some bug fixes and made it not apply to system headers, wanna give it another try? |
Hm, still throwing the same errors for me, even on branch tip. Most indirect symbol warnings (couldn't count, too many) are for system headers, and some notes suggest using headers from my downloaded copy of Aro to fix them. Same story with unused. Below is the full error log of compiling https://github.com/janet-lang/janet commit 66e0b53cf655c5981d4e9974d354e3f0240290a8 with branch tip. |
Closing as this never worked in practice and isn't a high priority. Maybe someday someone will finish it. |
Closes #234
Should this be on by default? Should it be an error or a warning? Maybe it should be a warning if it wasn't explicitly set on.