aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Arun Prakash Jana <engineerarun@gmail.com>2017-12-25 17:35:27 +0530
committerGravatar Arun Prakash Jana <engineerarun@gmail.com>2017-12-25 19:10:20 +0530
commitcd177086cae75394b21dd44eff57c65783d3b4a8 (patch)
tree80e9a2f05d46252a5d5832a945082dc8875e4852
parentf687463574ac69491b337d37725b42d3f4878cf8 (diff)
downloadnnn-cd177086cae75394b21dd44eff57c65783d3b4a8.tar.gz
OpenSUSE gcc fails at '-fno-tree-loop-vectorize'
-rw-r--r--Makefile2
-rw-r--r--nnn.c4
-rw-r--r--packagecore.yaml20
3 files changed, 14 insertions, 12 deletions
diff --git a/Makefile b/Makefile
index fdbd375..03dfd77 100644
--- a/Makefile
+++ b/Makefile
@@ -23,7 +23,7 @@ all: $(BIN) $(PLAYER)
$(SRC): nnn.h
$(BIN): $(SRC)
- $(CC) -O3 -fno-tree-loop-vectorize $(CFLAGS) -o $@ $^ $(LDFLAGS) $(LDLIBS)
+ $(CC) -O2 $(CFLAGS) -o $@ $^ $(LDFLAGS) $(LDLIBS)
strip $@
debug: $(SRC)
diff --git a/nnn.c b/nnn.c
index e467401..0b817ef 100644
--- a/nnn.c
+++ b/nnn.c
@@ -1182,10 +1182,12 @@ parsebmstr(char *bms)
static char *
get_bm_loc(char *key, char *buf)
{
+ int r;
+
if (!key || !key[0])
return NULL;
- for (int r = 0; bookmark[r].key && r < BM_MAX; ++r) {
+ for (r = 0; bookmark[r].key && r < BM_MAX; ++r) {
if (xstrcmp(bookmark[r].key, key) == 0) {
if (bookmark[r].loc[0] == '~') {
char *home = getenv("HOME");
diff --git a/packagecore.yaml b/packagecore.yaml
index 239b92e..7b861fb 100644
--- a/packagecore.yaml
+++ b/packagecore.yaml
@@ -48,16 +48,16 @@ packages:
deps:
- ncurses
- readline
- opensuse42.3:
- builddeps:
- - make
- - gcc
- - pkg-config
- - ncurses-devel
- - readline-devel
- deps:
- - ncurses
- - readline
+# opensuse42.3:
+# builddeps:
+# - make
+# - gcc
+# - pkg-config
+# - ncurses-devel
+# - readline-devel
+# deps:
+# - ncurses
+# - readline
ubuntu16.04:
builddeps:
- make