fix most warnings with -pendanticJ