[all] use explicit void parameter lists

This makes it a compile-time error to call a function that semantically
takes no parameters with a nonzero number of arguments.

Previously, such code would still compile, but risk blowing up the stack
if a compiler chose to use something other than caller-cleanup calling
conventions.
This commit is contained in:
Tudor Brindus
2021-01-14 01:05:26 -05:00
committed by Geoffrey McRae
parent dc17492750
commit a46a3a2668
28 changed files with 111 additions and 111 deletions

View File

@@ -31,7 +31,7 @@ Place, Suite 330, Boston, MA 02111-1307 USA
typedef struct LGTimer LGTimer;
static inline uint64_t microtime()
static inline uint64_t microtime(void)
{
#if defined(_WIN32)
static LARGE_INTEGER freq = { 0 };
@@ -50,7 +50,7 @@ static inline uint64_t microtime()
#if !defined(_WIN32)
//FIXME: make win32 versions
static inline uint64_t nanotime()
static inline uint64_t nanotime(void)
{
struct timespec time;
clock_gettime(CLOCK_MONOTONIC_RAW, &time);