-
Notifications
You must be signed in to change notification settings - Fork 635
Closed
Description
Describe the bug
The compilation fails on raspberry pi, because of a badly placed endif
To reproduce
Download code on Raspberry Pi
Expected behavior
SUccesful build
Additional information
The endif statement at line 804 should be 1 line up. Before bracket.
ieven@raspberrypi:~/workspace/KeyDB $ make
cd src && make all
make[1]: Entering directory '/home/lieven/workspace/KeyDB/src'
CC Makefile.dep
CC bitops.o
bitops.cpp: In function 'void bitopCommand(client*)':
bitops.cpp:734:27: warning: unused variable 'i' [-Wunused-variable]
unsigned long i;
^
bitops.cpp:856:33: error: a function-definition is not allowed here before '{' token
void bitcountCommand(client *c) {
^
bitops.cpp:905:31: error: a function-definition is not allowed here before '{' token
void bitposCommand(client *c) {
^
bitops.cpp:1007:44: error: a function-definition is not allowed here before '{' token
void bitfieldGeneric(client *c, int flags) {
^
bitops.cpp:1232:33: error: a function-definition is not allowed here before '{' token
void bitfieldCommand(client *c) {
^
bitops.cpp:1236:35: error: a function-definition is not allowed here before '{' token
void bitfieldroCommand(client *c) {
^
bitops.cpp:1238:1: error: expected '}' at end of input
}
^
bitops.cpp:595:30: note: to match this '{'
void bitopCommand(client *c) {
^
At global scope:
cc1plus: warning: unrecognized command line option '-Wno-atomic-alignment'
cc1plus: warning: unrecognized command line option '-Wno-address-of-packed-member'
make[1]: *** [Makefile:445: bitops.o] Error 1
make[1]: Leaving directory '/home/lieven/workspace/KeyDB/src'
make: *** [Makefile:6: all] Error 2
Metadata
Metadata
Assignees
Labels
No labels