Fix #1: Build without warnings #3

Merged
mgrettondann merged 5 commits from origin/1-compile-without-warnings into main 2024-03-15 15:39:46 +00:00
Owner
No description provided.
mgrettondann added 5 commits 2024-03-15 15:25:06 +00:00
write_html() is declared as taking two parameters, but the call to it
passes three.

We fix this by dropping the third parameter, which was labelled 'DUMMY'
anyway.
In a reverse of write_html(), write_tex() is declared with three
parameters, but only called with two.

Removing the third parameter is fine as it is unused.
We typedef int * to Parmeters in global.h, but not at the same time as
the other typedefs.  This causes problems when we add a function
declaration for write_scrap().

This also highlights a random `1` being passed as the parameter in one
call to write_scrap().  This is obviously wrong, but the purpose of this
fix is to remove warnings - not do a deep dive into what the code is
doing.
This makes the code C89 compliant, and removes all warnings on macOS.
mgrettondann force-pushed origin/1-compile-without-warnings from a00e33176b to e99d9f91c9 2024-03-15 15:25:26 +00:00 Compare
mgrettondann force-pushed origin/1-compile-without-warnings from e99d9f91c9 to 59b69355ef 2024-03-15 15:31:53 +00:00 Compare
mgrettondann merged commit ebed228492 into main 2024-03-15 15:39:46 +00:00
Sign in to join this conversation.
No Reviewers
No Label
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: mgrettondann/nuweb#3
No description provided.