Avoid compiler warning in C/C++ example