-w

is the gcc/g++ option to disable warning messages.