Finally, I've did it...
I've enabled '-Wall -Werror' and fixed a bunch of warnings in 100
files (nice number (-: )

https://github.com/Jabberd2/jabberd2/pull/12

I've added configure's --enable-werror flag to enable paranoid '-Wall
-Werror' flags (with some exceptions for a while)

Fixed a bunch of compilation warnings:

- 'const char ' VS 'char'.
- unused local vars
- pointer-to-integer-cast

A few possible errors was discovered

- possible integer overflow something like printf("%d", (int)pointer)
- error in _ar_sqlite_create_user: It could return success if actually failed

Some warnings are suppressed to be fixed a bit later:
- unused-result
- pointer-sign
- strict-overflow

BR, Eugene Agafonov.


Reply via email to