mirror of
https://github.com/RfidResearchGroup/proxmark3.git
synced 2025-08-19 21:03:48 -07:00
remove switch-enum warnings
This commit is contained in:
parent
36c523659b
commit
b46a99d7d7
8 changed files with 19 additions and 10 deletions
|
@ -610,7 +610,8 @@ uint64_t crack_states_bitsliced_dispatch(uint32_t cuid, uint8_t *best_first_byte
|
||||||
break;
|
break;
|
||||||
#endif
|
#endif
|
||||||
#endif
|
#endif
|
||||||
default:
|
case SIMD_AUTO:
|
||||||
|
case SIMD_NONE:
|
||||||
crack_states_bitsliced_function_p = &crack_states_bitsliced_NOSIMD;
|
crack_states_bitsliced_function_p = &crack_states_bitsliced_NOSIMD;
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
@ -642,7 +643,8 @@ void bitslice_test_nonces_dispatch(uint32_t nonces_to_bruteforce, uint32_t *bf_t
|
||||||
break;
|
break;
|
||||||
#endif
|
#endif
|
||||||
#endif
|
#endif
|
||||||
default:
|
case SIMD_AUTO:
|
||||||
|
case SIMD_NONE:
|
||||||
bitslice_test_nonces_function_p = &bitslice_test_nonces_NOSIMD;
|
bitslice_test_nonces_function_p = &bitslice_test_nonces_NOSIMD;
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
MYSRCPATHS =
|
MYSRCPATHS =
|
||||||
MYINCLUDES = -I.
|
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
|
MYDEFS = -DHAVE_STDINT_H
|
||||||
MYSRCS = \
|
MYSRCS = \
|
||||||
dump.c \
|
dump.c \
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
MYSRCPATHS =
|
MYSRCPATHS =
|
||||||
MYINCLUDES = -I.
|
MYINCLUDES = -I.
|
||||||
# Lua lib requires GNU extensions (implicit declarations of functions): -std=gnu99 or -std=gnu11
|
# 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)
|
MYDEFS = -DLUA_COMPAT_ALL $(SYSCFLAGS)
|
||||||
MYSRCS = lapi.c lcode.c lctype.c ldebug.c ldo.c ldump.c lfunc.c lgc.c llex.c \
|
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 \
|
lmem.c lobject.c lopcodes.c lparser.c lstate.c lstring.c ltable.c \
|
||||||
|
|
|
@ -775,7 +775,7 @@ static int CmdHFiClassELoad(const char *Cmd) {
|
||||||
res = loadFileJSON(filename, dump, 2048, &bytes_read);
|
res = loadFileJSON(filename, dump, 2048, &bytes_read);
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
default:
|
case DICTIONARY:
|
||||||
PrintAndLogEx(ERR, "No dictionary loaded");
|
PrintAndLogEx(ERR, "No dictionary loaded");
|
||||||
free(dump);
|
free(dump);
|
||||||
return PM3_ESOFT;
|
return PM3_ESOFT;
|
||||||
|
|
|
@ -90,7 +90,8 @@ static void get_SIMD_instruction_set(char *instruction_set) {
|
||||||
case SIMD_MMX:
|
case SIMD_MMX:
|
||||||
strcpy(instruction_set, "MMX");
|
strcpy(instruction_set, "MMX");
|
||||||
break;
|
break;
|
||||||
default:
|
case SIMD_AUTO:
|
||||||
|
case SIMD_NONE:
|
||||||
strcpy(instruction_set, "no");
|
strcpy(instruction_set, "no");
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
|
@ -572,10 +572,12 @@ static int CmdLFHitagReader(const char *Cmd) {
|
||||||
// No additional parameters needed
|
// No additional parameters needed
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
case RHT1F_PLAIN:
|
||||||
|
case RHT1F_AUTHENTICATE:
|
||||||
case WHTSF_CHALLENGE:
|
case WHTSF_CHALLENGE:
|
||||||
case WHTSF_KEY:
|
case WHTSF_KEY:
|
||||||
|
case WHT2F_PASSWORD:
|
||||||
case WHT2F_CRYPTO:
|
case WHT2F_CRYPTO:
|
||||||
default:
|
|
||||||
return usage_hitag_reader();
|
return usage_hitag_reader();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -678,6 +680,8 @@ static int CmdLFHitagWriter(const char *Cmd) {
|
||||||
num_to_bytes(param_get32ex(Cmd, 3, 0, 16), 4, htd.crypto.data);
|
num_to_bytes(param_get32ex(Cmd, 3, 0, 16), 4, htd.crypto.data);
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
case RHT1F_PLAIN:
|
||||||
|
case RHT1F_AUTHENTICATE:
|
||||||
case RHTSF_CHALLENGE:
|
case RHTSF_CHALLENGE:
|
||||||
case RHTSF_KEY:
|
case RHTSF_KEY:
|
||||||
case RHT2F_PASSWORD:
|
case RHT2F_PASSWORD:
|
||||||
|
@ -685,7 +689,6 @@ static int CmdLFHitagWriter(const char *Cmd) {
|
||||||
case RHT2F_CRYPTO:
|
case RHT2F_CRYPTO:
|
||||||
case RHT2F_TEST_AUTH_ATTEMPTS:
|
case RHT2F_TEST_AUTH_ATTEMPTS:
|
||||||
case RHT2F_UID_ONLY:
|
case RHT2F_UID_ONLY:
|
||||||
default:
|
|
||||||
return usage_hitag_writer();
|
return usage_hitag_writer();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -424,10 +424,13 @@ static bool emojify_token(const char *token, uint8_t token_length, const char **
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
default: {// ERASE
|
case ERASE: {
|
||||||
*emojified_token_length = 0;
|
*emojified_token_length = 0;
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
case ALIAS: { // should never happen
|
||||||
|
return false;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
MYSRCPATHS =
|
MYSRCPATHS =
|
||||||
MYINCLUDES = -I. -I..
|
MYINCLUDES = -I. -I..
|
||||||
MYCFLAGS = -Wno-cast-align
|
MYCFLAGS = -Wno-cast-align -Wno-switch-enum
|
||||||
MYDEFS =
|
MYDEFS =
|
||||||
MYSRCS = \
|
MYSRCS = \
|
||||||
aes.c \
|
aes.c \
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue