Merge pull request #981 from xexyl/1987-wall-warnings
Clean up 1987/wall warnings, fix README.md to run
This commit is contained in:
2 files changed
+15
-5
No files matched your search
+13
-2
@@ -41,7 +41,8 @@ include ../../var.mk
|
||||
CSILENCE= -Wno-char-subscripts -Wno-error -Wno-implicit-function-declaration \
|
||||
-Wno-incompatible-library-redeclaration -Wno-return-type -Wno-string-plus-int \
|
||||
-Wno-unknown-escape-sequence -Wno-deprecated-declarations \
|
||||
-Wno-deprecated-non-prototype
|
||||
-Wno-deprecated-non-prototype -Wno-implicit-int -Wno-incompatible-pointer-types \
|
||||
-Wno-unused-value
|
||||
|
||||
# Common C compiler warning flags
|
||||
#
|
||||
@@ -98,7 +99,17 @@ endif
|
||||
#
|
||||
ifeq ($(CC),gcc)
|
||||
#
|
||||
#CSILENCE+=
|
||||
CSILENCE+= -Wno-missing-parameter-type -Wno-builtin-declaration-mismatch -Wno-unknown-warning-option
|
||||
#
|
||||
#CWARN+=
|
||||
#
|
||||
endif
|
||||
|
||||
# Specific add-ons or replacements for cc only
|
||||
#
|
||||
ifeq ($(CC),cc)
|
||||
#
|
||||
CSILENCE+= -Wno-missing-parameter-type -Wno-builtin-declaration-mismatch -Wno-unknown-warning-option
|
||||
#
|
||||
#CWARN+=
|
||||
#
|
||||
|
||||
+2
-3
@@ -14,10 +14,10 @@ make all
|
||||
|
||||
```sh
|
||||
./wall
|
||||
# enter some strings
|
||||
# enter some numbers
|
||||
|
||||
./wall | some_command
|
||||
# enter some strings
|
||||
# enter some strings or numbers, depending on command
|
||||
```
|
||||
|
||||
|
||||
@@ -47,7 +47,6 @@ m*m
|
||||
./wall | cat
|
||||
```
|
||||
|
||||
|
||||
and enter some input like:
|
||||
|
||||
```
|
||||
|
||||
Reference in new issue
Block a user