fix comp_err.c for some gcc