aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Arun Prakash Jana <engineerarun@gmail.com>2017-11-30 21:40:52 +0530
committerGravatar Arun Prakash Jana <engineerarun@gmail.com>2017-11-30 21:40:52 +0530
commit5ff29cede8e672eecc4d817dbc7fa311758116aa (patch)
treebb6e3eb4cfaf613478397398671f217e945de42c
parentcd2bdc5991cd61da1b1ab386b096fb14676e4b2b (diff)
downloadnnn-5ff29cede8e672eecc4d817dbc7fa311758116aa.tar.gz
Fix #50: revert to -O2 optimization
The while loop in xstrlcpy() breaks when -O3 is used.
-rw-r--r--Makefile2
-rwxr-xr-xscripts/test/mktest.sh1
2 files changed, 2 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index 3bce324..4bc2a18 100644
--- a/Makefile
+++ b/Makefile
@@ -3,7 +3,7 @@ VERSION = 1.5
PREFIX ?= /usr/local
MANPREFIX = $(PREFIX)/share/man
-CFLAGS += -O3 -Wall -Wextra -Wno-unused-parameter
+CFLAGS += -O2 -Wall -Wextra -Wno-unused-parameter
LDLIBS = -lreadline
ifeq ($(shell pkg-config ncursesw && echo 1),1)
diff --git a/scripts/test/mktest.sh b/scripts/test/mktest.sh
index f5e4fb5..301245b 100755
--- a/scripts/test/mktest.sh
+++ b/scripts/test/mktest.sh
@@ -37,3 +37,4 @@ touch 'unicode/Malgudi Days - मालगुडी डेज - E05. Swami and F
chmod +x 'unicode/Malgudi Days - मालगुडी डेज - E05. Swami and Friends - स्वामी और उसके दोस्त (Part 2)'
touch 'unicode/Führer'
touch 'unicode/Eso eso aamar ghare eso ♫ এসো এসো আমার ঘরে এসো ♫ Swagatalakshmi Dasgupta'
+touch 'max_chars_filename_xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx'