Skip to content

Silence two pointless warnings in Makefile.example#254

Open
xexyl wants to merge 2 commits intoioccc-src:masterfrom
xexyl:csilence
Open

Silence two pointless warnings in Makefile.example#254
xexyl wants to merge 2 commits intoioccc-src:masterfrom
xexyl:csilence

Conversation

@xexyl
Copy link
Copy Markdown
Contributor

@xexyl xexyl commented Mar 29, 2026

Not that there aren't many other pointless warnings but clang whines
about '"missing" prototypes' and '"missing" variable declarations'. What
it really means is that it wants you to put in static (or extern I guess
but that's irrelevant in the IOCCC as you're not supposed to include
your own header files to save bytes and for functions that is useless)
despite the fact a variable can't be used before it's declared (hence
not missing) and a function can't be called unless it's prototyped or
the function comes first (hence not missing either). This is not only
wasteful it is very annoying having to update the Makefile for every
submission every year. These warnings are pointless outside the IOCCC in
many cases but they're especially pointless in the IOCCC.

xexyl added 2 commits March 21, 2026 02:08
This is merely irony and satire and maybe a touch of sarcasm as well but
importantly is right on theme.

At the same time I fixed an error in bugs.html where the last entry
there had text in the summary part of the file.

Also I added a missing 'Jump to top' link in 2024/ferguson2 (also
INABIAF).

But still this is mostly for fun I just happened to notice the issues at
the same time.
Not that there aren't many other pointless warnings but clang whines
about '"missing" prototypes' and '"missing" variable declarations'. What
it really means is that it wants you to put in static (or extern I guess
but that's irrelevant in the IOCCC as you're not supposed to include
your own header files to save bytes and for functions that is useless)
despite the fact a variable can't be used before it's declared (hence
not missing) and a function can't be called unless it's prototyped or
the function comes first (hence not missing either). This is not only
wasteful it is very annoying having to update the Makefile for every
submission every year. These warnings are pointless outside the IOCCC in
many cases but they're especially pointless in the IOCCC.
@xexyl
Copy link
Copy Markdown
Contributor Author

xexyl commented Mar 29, 2026

These to warnings are a bloody pain in my side .. and maybe something else :-)

Should have done this ages ago because they're almost as bad as the '"unsafe" buffer usage'.

UPDATE

Okay actually they are as bad but just not as ridiculous. Or maybe they are but differently.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant