diff options
author | Larry Doolittle <ldoolitt@recycle.lbl.gov> | 2017-11-28 19:51:23 -0800 |
---|---|---|
committer | Larry Doolittle <ldoolitt@recycle.lbl.gov> | 2017-11-28 19:51:23 -0800 |
commit | 0c85b5b9d195c0aacd96e223c31e54d77b5a2bfc (patch) | |
tree | 960f5d3c9ba153cd8aa25c31b00fa7fc8407c919 | |
parent | f4cab3af39cb36c246ca933abc1574abb704a5f7 (diff) | |
download | vhdl2vl-0c85b5b9d195c0aacd96e223c31e54d77b5a2bfc.tar.gz vhdl2vl-0c85b5b9d195c0aacd96e223c31e54d77b5a2bfc.zip |
C code passes -Wstrict-prototypes
-rw-r--r-- | src/makefile | 2 | ||||
-rw-r--r-- | 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" |