more clang warnings:
- comparison of constant 18446744073709551615 with expression of type 'int' is always true
- expression which evaluates to zero treated as a null pointer
- usage of uninitialized var