"SfR Fresh" - the SfR Freeware/Shareware Archive

Member "xiterm-2.0/doc/test/gcc-Wall" of archive xiterm-2.0.tar.gz:


As a special service "SfR Fresh" has tried to format the requested source page into HTML format using source code syntax highlighting with prefixed line numbers. Alternatively you can here view or download the uninterpreted source code file. That can be also achieved for any archive member file by clicking within an archive contents listing on the first character of the file(path) respectively on the according byte size field.
    1 #!/bin/sh
    2 # gcc -Wall plus other important warnings not included in -Wall
    3 
    4 for arg
    5 do
    6     case $arg in
    7 	-O*) Wuninitialized=-Wuninitialized;;  # only makes sense with `-O'
    8     esac
    9 done
   10 
   11 exec gcc \
   12 	-Wall $Wuninitialized \
   13 	-Wwrite-strings \
   14 	-Wcast-qual \
   15 	-Wbad-function-cast \
   16 	-Wpointer-arith \
   17 	-Wstrict-prototypes \
   18 	-Wmissing-prototypes \
   19 	-Wmissing-declarations \
   20 	-Wnested-externs \
   21 	-Wtraditional \
   22 	-Wconversion \
   23 	-Wcomment \
   24 	-Wcast-align \
   25 	-Winline \
   26 	-Wshadow \
   27 	-Wredundant-decls \
   28 	-Wid-clash-31 \
   29 	"$@"
   30 
   31 #    -Wall implies:
   32 #	-Wimplicit
   33 #	-Wreturn-type
   34 #	-Wunused
   35 #	-Wswitch
   36 #	-Wformat
   37 #	-Wchar-subscripts
   38 #	-Wparentheses
   39 #	-Wmissing-braces
   40 ------------------------------------------------------------------------------