xslate / p5-Mouse

Lightweight class builder for Perl, as a subset of Moose
https://metacpan.org/release/Mouse
Other
46 stars 32 forks source link

use PERL_UNUSED_RESULT #83

Closed skaji closed 6 years ago

skaji commented 6 years ago

This PR fixes the following warning:

./Build
...
cc -I. -Ixs-src -I/home/skaji/env/plenv/versions/relocatable-5.26.1.1/lib/5.26.1/x86_64-linux/CORE -fPIC -Wall -Wextra -Wdeclaration-after-statement -Wc++-compat -c -fwrapv -fno-strict-aliasing -pipe -fstack-protector -I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -O2 -g -o xs-src/MouseTypeConstraints.o xs-src/MouseTypeConstraints.c
xs-src/MouseTypeConstraints.xs: In function ‘S_nv_is_integer’:
xs-src/MouseTypeConstraints.xs:152:9: warning: ignoring return value of ‘gcvt’, declared with attribute warn_unused_result [-Wunused-result]
         (void)Gconvert(nv, NV_DIG, 0, buf);
         ^