Commit 6f76c238 authored by Niels Möller's avatar Niels Möller
Browse files

* make_class (do-struct-free-function, do-struct-mark-function):

Avoid warnings about unused parameters when the generated
functions are empty functions.

Rev: src/make_class:1.10
parent 00fa4229
......@@ -333,6 +333,8 @@
; (werror "gazonk\n")
(list (declare-struct-mark-function name)
"\n{\n"
; To avoid warnings for unused parameters
" (void) mark; (void) i;\n"
(map (lambda (x) (list " " x))
markers)
"}\n\n")))
......@@ -352,6 +354,8 @@
(list (declare-struct-free-function name)
"\n{\n"
; To avoid warnings for unused parameters
" (void) i;\n"
(map (lambda (x) (list " " x))
freers)
"}\n\n")))
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment