Revision: 96011 https://trac.macports.org/changeset/96011 Author: ryandesign@macports.org Date: 2012-07-28 10:01:06 -0700 (Sat, 28 Jul 2012) Log Message: ----------- xfig: fix build with clang (#35384) Modified Paths: -------------- trunk/dports/graphics/xfig/Portfile Added Paths: ----------- trunk/dports/graphics/xfig/files/patch-w_export.c trunk/dports/graphics/xfig/files/patch-w_print.c trunk/dports/graphics/xfig/files/patch-w_util.c Modified: trunk/dports/graphics/xfig/Portfile =================================================================== --- trunk/dports/graphics/xfig/Portfile 2012-07-28 16:54:35 UTC (rev 96010) +++ trunk/dports/graphics/xfig/Portfile 2012-07-28 17:01:06 UTC (rev 96011) @@ -4,7 +4,7 @@ name xfig version 3.2.5b -revision 4 +revision 5 categories graphics x11 license Permissive maintainers nomaintainer @@ -36,8 +36,11 @@ patchfiles patch-Imakefile \ patch-fig.h \ patch-f_util.c \ - patch-w_keyboard.c\ - patch-f_readeps.c + patch-w_keyboard.c \ + patch-f_readeps.c \ + patch-w_export.c \ + patch-w_print.c \ + patch-w_util.c post-extract { foreach d "${worksrcpath}/Doc ${worksrcpath}/Libraries" { Added: trunk/dports/graphics/xfig/files/patch-w_export.c =================================================================== --- trunk/dports/graphics/xfig/files/patch-w_export.c (rev 0) +++ trunk/dports/graphics/xfig/files/patch-w_export.c 2012-07-28 17:01:06 UTC (rev 96011) @@ -0,0 +1,20 @@ +--- w_export.c.orig 2007-09-19 15:32:30.000000000 -0400 ++++ w_export.c 2012-07-27 17:42:49.000000000 -0400 +@@ -1016,7 +1016,7 @@ + /* set global state */ + print_hpgl_pcl_switch = state; + +- return; ++ return 0; + } + + static XtCallbackProc +@@ -1038,7 +1038,7 @@ + /* set global state */ + hpgl_specified_font = state; + +- return; ++ return 0; + } + + void create_export_panel(Widget w) Property changes on: trunk/dports/graphics/xfig/files/patch-w_export.c ___________________________________________________________________ Added: svn:eol-style + native Added: trunk/dports/graphics/xfig/files/patch-w_print.c =================================================================== --- trunk/dports/graphics/xfig/files/patch-w_print.c (rev 0) +++ trunk/dports/graphics/xfig/files/patch-w_print.c 2012-07-28 17:01:06 UTC (rev 96011) @@ -0,0 +1,20 @@ +--- w_print.c.orig 2009-04-20 12:26:14.000000000 -0400 ++++ w_print.c 2012-07-27 17:47:29.000000000 -0400 +@@ -1185,7 +1185,7 @@ + /* which button */ + which = (int) XawToggleGetCurrent(w); + if (which == 0) /* no buttons on, in transition so return now */ +- return; ++ return 0; + if (which == 2) /* "blank" button, invert state */ + state = !state; + +@@ -1193,7 +1193,7 @@ + print_all_layers = state; + update_figure_size(); + +- return; ++ return 0; + } + + /* when user toggles between printing all or only active layers */ Property changes on: trunk/dports/graphics/xfig/files/patch-w_print.c ___________________________________________________________________ Added: svn:eol-style + native Added: trunk/dports/graphics/xfig/files/patch-w_util.c =================================================================== --- trunk/dports/graphics/xfig/files/patch-w_util.c (rev 0) +++ trunk/dports/graphics/xfig/files/patch-w_util.c 2012-07-28 17:01:06 UTC (rev 96011) @@ -0,0 +1,38 @@ +--- w_util.c.orig 2009-03-30 11:52:38.000000000 -0400 ++++ w_util.c 2012-07-28 07:31:19.000000000 -0400 +@@ -710,7 +710,7 @@ + /* keep track of which one the user is pressing */ + cur_spin = widget; + +- return; ++ return 0; + } + + static XtEventHandler +@@ -718,7 +718,7 @@ + { + XtRemoveTimeOut(auto_spinid); + +- return; ++ return 0; + } + + static XtTimerCallbackProc +@@ -729,7 +729,7 @@ + /* call the proper spinup/down routine */ + XtCallCallbacks(cur_spin, XtNcallback, 0); + +- return; ++ return 0; + } + + /***************************/ +@@ -1412,7 +1412,7 @@ + } + SetValues(w); + +- return; ++ return 0; + } + + /* assemble main window title bar with xfig title and (base) file name */ Property changes on: trunk/dports/graphics/xfig/files/patch-w_util.c ___________________________________________________________________ Added: svn:eol-style + native
participants (1)
-
ryandesign@macports.org