5
철저하고 자세한 g ++ 경고를 활성화하는 플래그
종종 C 아래 gcc에서 다음과 같은 경고 플래그 세트로 시작합니다 (여러 소스에서 고통스럽게 조립 됨). -Wall -Wextra -Wformat-nonliteral -Wcast-align -Wpointer-arith -Wbad-function-cast \ -Wmissing-prototypes -Wstrict-prototypes -Wmissing-declarations -Winline -Wundef \ -Wnested-externs -Wcast-qual -Wshadow -Wwrite-strings -Wno-unused-parameter \ -Wfloat-equal -pedantic -ansi 이 경고 세트로 (적어도 내 디버그 버전) 빌드하고 가능한 모든 것 (일반적으로 모든 …