stricter warnings, wip

This commit is contained in:
Philippe Teuwen 2020-05-02 23:54:27 +02:00
commit 0e39cb8e34
11 changed files with 20 additions and 16 deletions

View file

@ -556,7 +556,7 @@ void SetSIMDInstr(SIMDExecInstr instr) {
bitslice_test_nonces_function_p = &bitslice_test_nonces_dispatch;
}
static SIMDExecInstr GetSIMDInstr() {
static SIMDExecInstr GetSIMDInstr(void) {
SIMDExecInstr instr = SIMD_NONE;
#if defined (__i386__) || defined (__x86_64__)
@ -578,7 +578,7 @@ static SIMDExecInstr GetSIMDInstr() {
return instr;
}
SIMDExecInstr GetSIMDInstrAuto() {
SIMDExecInstr GetSIMDInstrAuto(void) {
SIMDExecInstr instr = intSIMDInstr;
if (instr == SIMD_AUTO)
return GetSIMDInstr();

View file

@ -433,7 +433,7 @@ static bool read_bench_data(statelist_t *test_candidates) {
}
float brute_force_benchmark() {
float brute_force_benchmark(void) {
statelist_t test_candidates[NUM_BRUTE_FORCE_THREADS];
test_candidates[0].states[ODD_STATE] = malloc((TEST_BENCH_SIZE + 1) * sizeof(uint32_t));