-W
is now deprecated by -Wextra
with new gcc
versions.
From gcc
man page:
-Wextra
This enables some extra warning flags that are not enabled by -Wall.
(This option used to be called -W. The older name is still supported, but
the newer name is more descriptive.)