Avoid warnings in C code