Avoid compiler warning in C/C++ examples