C + test.pl: avoid some compile-time warnings