summaryrefslogtreecommitdiff
path: root/perlio.c
diff options
context:
space:
mode:
authorBrian Fraser <fraserbn@gmail.com>2014-02-04 01:00:40 -0300
committerBrian Fraser <fraserbn@gmail.com>2014-02-05 04:32:52 -0300
commit15eb3045c00fb672689d55100ccff4bb2985aaf5 (patch)
treeaa8fb37bf8c7a7cc79d4b0fa03e1ad140eeafb7b /perlio.c
parent8877297842b5b3706977e02b609692bf44fb2462 (diff)
downloadperl-15eb3045c00fb672689d55100ccff4bb2985aaf5.tar.gz
Added missing prototypes.
This was mostly for XS functions defined in the core, but also for a handful of functions in the :stdio layer.
Diffstat (limited to 'perlio.c')
-rw-r--r--perlio.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/perlio.c b/perlio.c
index 07de32a1a8..0ae0a43d32 100644
--- a/perlio.c
+++ b/perlio.c
@@ -310,6 +310,7 @@ PerlIO_openn(pTHX_ const char *layers, const char *mode, int fd,
return NULL;
}
+XS(XS_PerlIO__Layer__find); /* prototype to pass -Wmissing-prototypes */
XS(XS_PerlIO__Layer__find)
{
dXSARGS;
@@ -818,6 +819,7 @@ MGVTBL perlio_vtab = {
perlio_mg_free
};
+XS(XS_io_MODIFY_SCALAR_ATTRIBUTES); /* prototype to pass -Wmissing-prototypes */
XS(XS_io_MODIFY_SCALAR_ATTRIBUTES)
{
dXSARGS;
@@ -858,6 +860,7 @@ PerlIO_tab_sv(pTHX_ PerlIO_funcs *tab)
return sv;
}
+XS(XS_PerlIO__Layer__NoWarnings); /* prototype to pass -Wmissing-prototypes */
XS(XS_PerlIO__Layer__NoWarnings)
{
/* This is used as a %SIG{__WARN__} handler to suppress warnings
@@ -871,6 +874,7 @@ XS(XS_PerlIO__Layer__NoWarnings)
XSRETURN(0);
}
+XS(XS_PerlIO__Layer__find); /* prototype to pass -Wmissing-prototypes */
XS(XS_PerlIO__Layer__find)
{
dVAR;