Closed ppisar closed 1 month ago
Makefile.PL checks for available functions by assigning their address to a variable. Value of the variable is then never used and GCC warns like this:
/tmp/pmts0000.c: In function ‘main’: /tmp/pmts0000.c:7:12: warning: unused variable ‘ixi’ [-Wunused-variable] 7 | void * ixi = strcasecmp; | ^~~
and like this:
/usr/lib64/perl5/CORE/XSUB.h:166:20: warning: unused variable ‘items’ [-Wunused-variable] 166 | #define dITEMS I32 items = (I32)(SP - MARK) | ^~~~~ /usr/lib64/perl5/CORE/XSUB.h:169:23: note: in expansion of macro ‘dITEMS’ 169 | dSP; dAXMARK; dITEMS | ^~~~~~ /tmp/pmts0000.c:8:4: note: in expansion of macro ‘dXSARGS’ 8 | dXSARGS; | ^~~~~~~
This patch silents the warnings.
Makefile.PL checks for available functions by assigning their address to a variable. Value of the variable is then never used and GCC warns like this:
and like this:
This patch silents the warnings.