Fix pedantic warnings
With the latest build system, somehow -Wpedantic got turned on. This is
reasonable given that we expect this code to compile against a number of
targets. Fix void issues.
void function() changes to void function(void)
Change-Id: I89a2dcbcd88c7d163ffdfb67927f71b39cb7aa6f
Signed-off-by: Ed Tanous <etanous@nvidia.com>
diff --git a/generator/cper-generate-cli.c b/generator/cper-generate-cli.c
index 036aaeb..2d65dd0 100644
--- a/generator/cper-generate-cli.c
+++ b/generator/cper-generate-cli.c
@@ -12,7 +12,7 @@
#include <libcper/generator/cper-generate.h>
#include <libcper/generator/sections/gen-section.h>
-void print_help();
+void print_help(void);
int main(int argc, char *argv[])
{
@@ -98,7 +98,7 @@
}
//Prints command help for this CPER generator.
-void print_help()
+void print_help(void)
{
printf(":: --out cper.file [--sections section1 ...] [--single-section sectiontype]\n");
printf("\tGenerates a pseudo-random CPER file with the provided section types and outputs to the given file name.\n\n");
diff --git a/generator/gen-utils.c b/generator/gen-utils.c
index b299f7b..fa0fa99 100644
--- a/generator/gen-utils.c
+++ b/generator/gen-utils.c
@@ -15,7 +15,7 @@
lfsr = seed;
}
-UINT32 cper_rand()
+UINT32 cper_rand(void)
{
lfsr |= lfsr == 0; // if x == 0, set x = 1 instead
lfsr ^= (lfsr & 0x0007ffff) << 13;