api.c avoid incorrect gcc warning