summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authortron <tron@openttd.org>2005-01-23 15:16:47 +0000
committertron <tron@openttd.org>2005-01-23 15:16:47 +0000
commit1cd455b8be2782590f708804f861a47a8d2fef29 (patch)
tree60b41a28cf18bba61bcff993ba254ea2000a083c /Makefile
parent98b06abd59c067c568d5677e47d1c2d95515d17c (diff)
downloadopenttd-1cd455b8be2782590f708804f861a47a8d2fef29.tar.xz
(svn r1616) Introduce ttd_strlcat() and use it to de-uglify some piece of code in misc_cmd.
While here rename the len parameter of ttd_strlcpy() to size, because it is a buffer size and not a string length. Also add -Wwrite-strings to the Makefile, because the above mentioned piece of code was the only part which triggered this warning.
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile1
1 files changed, 1 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index 9596a3efb..88bcf737f 100644
--- a/Makefile
+++ b/Makefile
@@ -300,6 +300,7 @@ CC_VERSION = $(shell $(CC) -dumpversion | cut -c 1,3)
# this is a workaround to test for >=
ifeq ($(shell if test $(CC_VERSION) -ge 29; then echo true; fi), true)
CFLAGS += -O -Wall -Wno-multichar -Wsign-compare -Wstrict-prototypes
+ CFLAGS += -Wwrite-strings
endif
ifeq ($(shell if test $(CC_VERSION) -ge 30; then echo true; fi), true)
CFLAGS += -W -Wno-unused-parameter