remove switch-enum warnings

This commit is contained in:
Philippe Teuwen 2020-05-11 23:50:14 +02:00
commit b46a99d7d7
8 changed files with 19 additions and 10 deletions

View file

@ -610,7 +610,8 @@ uint64_t crack_states_bitsliced_dispatch(uint32_t cuid, uint8_t *best_first_byte
break;
#endif
#endif
default:
case SIMD_AUTO:
case SIMD_NONE:
crack_states_bitsliced_function_p = &crack_states_bitsliced_NOSIMD;
break;
}
@ -642,7 +643,8 @@ void bitslice_test_nonces_dispatch(uint32_t nonces_to_bruteforce, uint32_t *bf_t
break;
#endif
#endif
default:
case SIMD_AUTO:
case SIMD_NONE:
bitslice_test_nonces_function_p = &bitslice_test_nonces_NOSIMD;
break;
}

View file

@ -1,6 +1,6 @@
MYSRCPATHS =
MYINCLUDES = -I.
MYCFLAGS = -Wno-unused-function -Wno-cast-align -Wno-bad-function-cast
MYCFLAGS = -Wno-unused-function -Wno-cast-align -Wno-bad-function-cast -Wno-switch-enum
MYDEFS = -DHAVE_STDINT_H
MYSRCS = \
dump.c \

View file

@ -1,7 +1,7 @@
MYSRCPATHS =
MYINCLUDES = -I.
# Lua lib requires GNU extensions (implicit declarations of functions): -std=gnu99 or -std=gnu11
MYCFLAGS = -Wno-cast-align -Wno-bad-function-cast
MYCFLAGS = -Wno-cast-align -Wno-bad-function-cast -Wno-switch-enum
MYDEFS = -DLUA_COMPAT_ALL $(SYSCFLAGS)
MYSRCS = lapi.c lcode.c lctype.c ldebug.c ldo.c ldump.c lfunc.c lgc.c llex.c \
lmem.c lobject.c lopcodes.c lparser.c lstate.c lstring.c ltable.c \