Revert "Compile testapi with -Wno-unused-function" This reverts commit f404c4f500a0ec18b04463581d5d1b3aae7f7730. The change broke non-GCC compilers.