[v1.03] Add void to function declarations with no args. C99 Standard says in 6.7.5.3 that empty arguments are actually obsolescent - this commit fixes a warning in some compilers

This commit is contained in:
Dr-Noob
2023-01-29 09:25:07 +01:00
parent b0354e28ff
commit 6eb2357485
21 changed files with 58 additions and 58 deletions

View File

@@ -10,7 +10,7 @@
#include <stdint.h>
#include "freq.h"
void* compute_avx() {
void* compute_avx(void) {
bool end = false;
struct timeval begin, now;

View File

@@ -1,6 +1,6 @@
#ifndef __FREQ_AVX__
#define __FREQ_AVX__
void* compute_avx();
void* compute_avx(void);
#endif

View File

@@ -10,7 +10,7 @@
#include <stdint.h>
#include "freq.h"
void* compute_avx512() {
void* compute_avx512(void) {
bool end = false;
struct timeval begin, now;

View File

@@ -1,6 +1,6 @@
#ifndef __FREQ_AVX512__
#define __FREQ_AVX512__
void* compute_avx512();
void* compute_avx512(void);
#endif

View File

@@ -10,7 +10,7 @@
#include <stdint.h>
#include "freq.h"
void* compute_nov() {
void* compute_nov(void) {
bool end = false;
struct timeval begin, now;

View File

@@ -1,6 +1,6 @@
#ifndef __FREQ_NO_VECTOR__
#define __FREQ_NO_VECTOR__
void* compute_nov();
void* compute_nov(void);
#endif