After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 700275 - [PATCH] gperl.h:411:1: warning: function declaration isn’t a prototype [-Wstrict-prototypes]
[PATCH] gperl.h:411:1: warning: function declaration isn’t a prototype [-Wstr...
Status: RESOLVED FIXED
Product: gnome-perl
Classification: Bindings
Component: Glib
unspecified
Other Linux
: Normal normal
: ---
Assigned To: gtk2-perl-bugs
gtk2-perl-bugs
Depends on:
Blocks:
 
 
Reported: 2013-05-14 08:59 UTC by Anders Kaseorg
Modified: 2013-09-25 19:10 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Anders Kaseorg 2013-05-14 08:59:41 UTC
This fixes a warning generated by the installed header file under gcc -Wstrict-prototypes.  (The (void) is needed to distinguish a function that takes no arguments from an old-style variadic function.)

--- a/gperl.h
+++ b/gperl.h
@@ -408,7 +408,7 @@ typedef struct {
   void *priv;
 } GPerlArgv;
 
-GPerlArgv * gperl_argv_new ();
+GPerlArgv * gperl_argv_new (void);
 void gperl_argv_update (GPerlArgv *pargv);
 void gperl_argv_free (GPerlArgv *pargv);
Comment 1 Torsten Schoenfeld 2013-09-25 19:10:49 UTC
Thanks for the patch.  Committed.