fix most warnings with -pendantic

mostly unused parameters, fix some comments in .c files. (// isn't valid in iso c90)