-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add garbage to files for ISO-compliant compilers.
This commit adds a single statement to aprs-is.c and c99math.c that will allow compilation on ISO-compliant compilers, such as GCC with the `-pedantic` or `-pedantic-errors` flags. Under a couple certain conditions -- specifically, when compiling for non-DOS platforms or with APRS-IS disabled -- two source files would wind up blank after preprocessing, which is a violation of the ISO C specifications. This commit adds a single typedef statement to the aforementioned C source files that does nothing to affect program flow but will make even the strictest compilers happy. In the spirit of writing good and portable code (as much as the GNU extensions will allow), I've also added `-pedantic-errors` into the configure.ac script, and by extension, into our Makefile. This will force future maintainers to write high-quality code.
- Loading branch information
1 parent
9880993
commit b325561
Showing
3 changed files
with
21 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters