I am reading a Makefile of one c file.
clang
-ggdb -std=c99 -Wall -Werror -o generate generate.c
I am unable to understand what -Wall flag in the above line means?
CS50 Stack Exchange is a question and answer site for students of Harvard University's CS50. It only takes a minute to sign up.
Sign up to join this community-Wall
means to enable all compiler warnings. And -Werror
means treat all warnings as errors. In other words, any possible warning that the compiler has determined will be shown to you if your code meets it, and it will be treated as a compile error that must be fixed.