Subject: | Build warning on systems without some CLOCK_* constants |
When building Time::HiRes as a part of perl core (but not as a stand-alone module) I get the following build warning:
In file included from HiRes.xs:959:
./const-c.inc:351:42: warning: unused parameter 'iv_return' [-Wunused-parameter]
constant_19 (pTHX_ const char *name, IV *iv_return) {
^
1 warning generated.
Since all three #ifdef'ed branches in constant_19 function can skip iv_return, as any of those three CLOCK_* constant may be absent in the system, I propose to add something like this:
@@ -349,6 +349,7 @@ constant_15 (pTHX_ const char *name, IV *iv_return) {
static int
constant_19 (pTHX_ const char *name, IV *iv_return) {
+ PERL_UNUSED_VAR(iv_return);