[MacPorts] #36274: gwyddion: error: non-void function 'module_register' should return a value
MacPorts
noreply at macports.org
Fri Sep 21 22:09:58 PDT 2012
#36274: gwyddion: error: non-void function 'module_register' should return a value
------------------------+---------------------
Reporter: kzeroyu@… | Owner: rowue@…
Type: defect | Status: new
Priority: Normal | Milestone:
Component: ports | Version: 2.1.2
Resolution: | Keywords:
Port: gwyddion |
------------------------+---------------------
Comment (by yeti@…):
But namely, this is a very suspicious error. Line 112 in pygwy.c is
if (!check_pygtk_availability())
There is no return statement on that line at all. The entire function is
static gboolean
module_register(void)
{
if (!check_pygtk_availability())
return FALSE;
pygwy_register_plugins();
pygwy_register_console();
return TRUE;
}
so it obviously does not lack return values anywhere.
Are some patches applied that would change the pygwy.c code?
--
Ticket URL: <https://trac.macports.org/ticket/36274#comment:3>
MacPorts <http://www.macports.org/>
Ports system for Mac OS
More information about the macports-tickets
mailing list