mirror of
https://github.com/jarun/nnn.git
synced 2024-11-28 05:41:31 +00:00
OpenSUSE gcc fails at '-fno-tree-loop-vectorize'
This commit is contained in:
parent
f687463574
commit
cd177086ca
2
Makefile
2
Makefile
|
@ -23,7 +23,7 @@ all: $(BIN) $(PLAYER)
|
||||||
$(SRC): nnn.h
|
$(SRC): nnn.h
|
||||||
|
|
||||||
$(BIN): $(SRC)
|
$(BIN): $(SRC)
|
||||||
$(CC) -O3 -fno-tree-loop-vectorize $(CFLAGS) -o $@ $^ $(LDFLAGS) $(LDLIBS)
|
$(CC) -O2 $(CFLAGS) -o $@ $^ $(LDFLAGS) $(LDLIBS)
|
||||||
strip $@
|
strip $@
|
||||||
|
|
||||||
debug: $(SRC)
|
debug: $(SRC)
|
||||||
|
|
4
nnn.c
4
nnn.c
|
@ -1182,10 +1182,12 @@ parsebmstr(char *bms)
|
||||||
static char *
|
static char *
|
||||||
get_bm_loc(char *key, char *buf)
|
get_bm_loc(char *key, char *buf)
|
||||||
{
|
{
|
||||||
|
int r;
|
||||||
|
|
||||||
if (!key || !key[0])
|
if (!key || !key[0])
|
||||||
return NULL;
|
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 (xstrcmp(bookmark[r].key, key) == 0) {
|
||||||
if (bookmark[r].loc[0] == '~') {
|
if (bookmark[r].loc[0] == '~') {
|
||||||
char *home = getenv("HOME");
|
char *home = getenv("HOME");
|
||||||
|
|
|
@ -48,16 +48,16 @@ packages:
|
||||||
deps:
|
deps:
|
||||||
- ncurses
|
- ncurses
|
||||||
- readline
|
- readline
|
||||||
opensuse42.3:
|
# opensuse42.3:
|
||||||
builddeps:
|
# builddeps:
|
||||||
- make
|
# - make
|
||||||
- gcc
|
# - gcc
|
||||||
- pkg-config
|
# - pkg-config
|
||||||
- ncurses-devel
|
# - ncurses-devel
|
||||||
- readline-devel
|
# - readline-devel
|
||||||
deps:
|
# deps:
|
||||||
- ncurses
|
# - ncurses
|
||||||
- readline
|
# - readline
|
||||||
ubuntu16.04:
|
ubuntu16.04:
|
||||||
builddeps:
|
builddeps:
|
||||||
- make
|
- make
|
||||||
|
|
Loading…
Reference in a new issue