From 0c85b5b9d195c0aacd96e223c31e54d77b5a2bfc Mon Sep 17 00:00:00 2001 From: Larry Doolittle Date: Tue, 28 Nov 2017 19:51:23 -0800 Subject: C code passes -Wstrict-prototypes --- src/makefile | 2 +- src/vhd2vl.y | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/makefile b/src/makefile index 7960b98..e8563db 100644 --- a/src/makefile +++ b/src/makefile @@ -7,7 +7,7 @@ WARNS = -Wall -W # Leave off -Wtraditional-conversion until flex and bison get cleaned up. # Use -W for now instead of the more modern -Wextra, since lots of people # still use older compilers. -# WARNS = -Wall -W -Wshadow -Wundef -Wredundant-decls -Wpointer-arith -Wcast-qual -Wpointer-arith -Wcast-align -Wcast-qual -Wsign-compare -Wwrite-strings -Wformat=2 -pedantic +WARNS = -Wall -W -Wshadow -Wundef -Wredundant-decls -Wpointer-arith -Wcast-qual -Wpointer-arith -Wcast-align -Wcast-qual -Wsign-compare -Wwrite-strings -Wstrict-prototypes -Wformat=2 -pedantic # Code generated by yacc-3.0.2 fails -Wstrict-overflow=5 # any of the following three should work: diff --git a/src/vhd2vl.y b/src/vhd2vl.y index 8661d26..fbc3688 100644 --- a/src/vhd2vl.y +++ b/src/vhd2vl.y @@ -2582,7 +2582,7 @@ simple_expr : signal { const char *outfile; /* Output file */ const char *sourcefile; /* Input file */ -void print_usage() { +void print_usage(void) { printf( "Usage: vhd2vl [--debug] [--quiet] [--std 1995|2001] source_file.vhd > target_file.v\n" " or vhd2vl [--debug] [--quiet] [--std 1995|2001] source_file.vhd target_file.v\n" -- cgit v1.2.1