mirror of
https://github.com/gnif/LookingGlass.git
synced 2025-11-22 22:51:24 +00:00
[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:
committed by
Geoffrey McRae
parent
dc17492750
commit
a46a3a2668
@@ -54,7 +54,7 @@ struct crash
|
||||
|
||||
static struct crash crash = {0};
|
||||
|
||||
static void load_symbols()
|
||||
static void load_symbols(void)
|
||||
{
|
||||
bfd_init();
|
||||
crash.fd = bfd_openr(crash.exe, NULL);
|
||||
@@ -131,7 +131,7 @@ static bool lookup_address(bfd_vma pc, const char ** filename, const char ** fun
|
||||
return true;
|
||||
}
|
||||
|
||||
static void cleanup()
|
||||
static void cleanup(void)
|
||||
{
|
||||
if (crash.syms)
|
||||
free(crash.syms);
|
||||
|
||||
Reference in New Issue
Block a user