First step!
mwplight
compiles
now
without warnings with gcc -ansi -Wall -Wextra -Wc++-compat.
All the code has been read and cleaned up, and the warnings fixed.
Anyway, the work isn't over, and mwplight still needs...
- to define all the strings as preprocessor variables, and get clear indentation (crucial to understand the code)
- to get rid of a few macro hacks
- to use only information form the command-line
- to organise headers, prototypes, inclusion
- to design some unit tests
- to document the command-line syntax
- to document the source
- to pass a
splinttest - to pass an even more strict compilation without warnings
The final warning-safe gcc options set should be something like this:
gcc -ansi -Wall -Wextra -Wc++-compat
-pedantic -Wfloat-equal -Wundef -Wshadow -Wpointer-arith
-Wbad-function-cast -Wcast-qual -Wcast-align
-Waggregate-return -Wstrict-prototypes -Wmissing-prototypes
-Wmissing-declarations -Wnested-externs
-Wunreachable-code