Hi!

I noticed that the compilation of qutecom generates a lot of compiler
warnings. Fixing these warnings could help in increasing the stability
of the application.

Here
http://allievi.sssup.it/cavedon/warnings.patch.gz
is a patch that removes most of the warnings under linux, by:
- declare as "static" functions used only in the .c file where they were
defined
- use (void) instead of () in declaration of C functions taking no
arguments (in fact, in C, differently from C++, () does not mean (void))
- add headers for exported symbols, instead of replicating prototypes
inside other .c files
- add "const", "signed/unsigned", "size_t" where appropriate
- use "%lu" for printf-ing size_t types ("%zu" would be correct, but it
is not portable)

I did not address:
- "defined but not used"
- warnings coming from external libraries (e.g. libgaim, gsm)

Could someone check try if this breaks compilation under MacOS X and
Windows, please?

Regards,
Ludovico


_______________________________________________
Wengophone-devel mailing list
Wengophone-devel@lists.openwengo.com
http://dev.openwengo.com/mailman/listinfo/wengophone-devel

Reply via email to