[MacPorts] #35406: xfig @3.2.5b_5 Build failure – wrong return value declaration for main()
MacPorts
noreply at macports.org
Sun Jul 29 08:00:57 PDT 2012
#35406: xfig @3.2.5b_5 Build failure – wrong return value declaration for main()
---------------------------------+------------------------------------------
Reporter: hanche@… | Owner: macports-tickets@…
Type: defect | Status: new
Priority: Normal | Milestone:
Component: ports | Version: 2.1.2
Keywords: | Port: xfig
---------------------------------+------------------------------------------
Xfig did not build for me using clang because main() is declared to return
void, and clang issued an error instead of just a warning (as I would have
expected). The fix is of course trivial:
{{{
--- main.c_ORIG 2009-03-30 17:52:18.000000000 +0200
+++ main.c 2012-07-29 16:48:38.000000000 +0200
@@ -629,7 +629,7 @@
int setup_visual (int *argc_p, char **argv, Arg *args);
void get_pointer_mapping (void);
-void main(int argc, char **argv)
+int main(int argc, char **argv)
{
Widget children[NCHILDREN];
XEvent event;
}}}
--
Ticket URL: <https://trac.macports.org/ticket/35406>
MacPorts <http://www.macports.org/>
Ports system for Mac OS
More information about the macports-tickets
mailing list