It is a good practice to enable most warnings while developing a software.
gcc -Wall -Wextra -o main main.c
g++ -Wall -Wextra -Wconversion -Woverloaded-virtual -o main main.cpp
Parameter | Details |
---|---|
option | It can be used to enable or disable warnings. It can make warnings into errors. |
src-file | The source file to be compiled. |