Skip to content

Commit cd17708

Browse files
committed
OpenSUSE gcc fails at '-fno-tree-loop-vectorize'
1 parent f687463 commit cd17708

File tree

3 files changed

+14
-12
lines changed

3 files changed

+14
-12
lines changed

Makefile

+1-1
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ all: $(BIN) $(PLAYER)
2323
$(SRC): nnn.h
2424

2525
$(BIN): $(SRC)
26-
$(CC) -O3 -fno-tree-loop-vectorize $(CFLAGS) -o $@ $^ $(LDFLAGS) $(LDLIBS)
26+
$(CC) -O2 $(CFLAGS) -o $@ $^ $(LDFLAGS) $(LDLIBS)
2727
strip $@
2828

2929
debug: $(SRC)

nnn.c

+3-1
Original file line numberDiff line numberDiff line change
@@ -1182,10 +1182,12 @@ parsebmstr(char *bms)
11821182
static char *
11831183
get_bm_loc(char *key, char *buf)
11841184
{
1185+
int r;
1186+
11851187
if (!key || !key[0])
11861188
return NULL;
11871189

1188-
for (int r = 0; bookmark[r].key && r < BM_MAX; ++r) {
1190+
for (r = 0; bookmark[r].key && r < BM_MAX; ++r) {
11891191
if (xstrcmp(bookmark[r].key, key) == 0) {
11901192
if (bookmark[r].loc[0] == '~') {
11911193
char *home = getenv("HOME");

packagecore.yaml

+10-10
Original file line numberDiff line numberDiff line change
@@ -48,16 +48,16 @@ packages:
4848
deps:
4949
- ncurses
5050
- readline
51-
opensuse42.3:
52-
builddeps:
53-
- make
54-
- gcc
55-
- pkg-config
56-
- ncurses-devel
57-
- readline-devel
58-
deps:
59-
- ncurses
60-
- readline
51+
# opensuse42.3:
52+
# builddeps:
53+
# - make
54+
# - gcc
55+
# - pkg-config
56+
# - ncurses-devel
57+
# - readline-devel
58+
# deps:
59+
# - ncurses
60+
# - readline
6161
ubuntu16.04:
6262
builddeps:
6363
- make

0 commit comments

Comments
 (0)