diff --git a/1996/westley/Makefile b/1996/westley/Makefile index 59a80db00..e79f83ec3 100644 --- a/1996/westley/Makefile +++ b/1996/westley/Makefile @@ -64,7 +64,7 @@ X11_INCDIR= /opt/X11/include # #CSILENCE= CSILENCE= -Wno-char-subscripts -Wno-error -Wno-implicit-function-declaration \ - -Wno-int-to-pointer-cast + -Wno-int-to-pointer-cast -Wno-empty-body # Common C compiler warning flags # diff --git a/1996/westley/README.md b/1996/westley/README.md index d490ea8e0..959768181 100644 --- a/1996/westley/README.md +++ b/1996/westley/README.md @@ -19,8 +19,7 @@ fix they no longer do. Now if argc < 5 (argv[4] is referenced) it will not do anything and it will not segfault either (this was caused by the body of the for() loop which is now empty (it doesn't appear to be needed at all). Note that this does make some of the author's explanations / portability notes no longer -valid but we have kept them there for the interested. The original is in -[westley.alt.c](westley.alt.c). Thank you Cody for your assistance! +valid but we have kept them there for the interested. Thank you Cody for your assistance! ## To run: @@ -31,18 +30,30 @@ valid but we have kept them there for the interested. The original is in ## Try: - sh ./clock2 + sh ./clock2 Also try: - - - sh ./clock2 + + + sh ./clock2 And for a good time, try: - sh ./clock3 + sh ./clock3 + +### Alternate code: + +An alternate version of this entry, `westley.alt.c`, is provided. +The original is in [westley.alt.c](westley.alt.c) does not contain +the above mentioned fixes. + +To compile this alternate version: + +```sh +make alt +``` ## Judges' comments: