1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-19 08:13:21 +00:00

Fix build with gcc4

This commit is contained in:
Tilman Keskinoz 2007-05-30 19:17:27 +00:00
parent 2d0493db9b
commit 37218fa383
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=192416
3 changed files with 64 additions and 0 deletions

View File

@ -0,0 +1,35 @@
--- xgv_anchor.c.orig Wed May 30 21:06:33 2007
+++ xgv_anchor.c Wed May 30 21:08:22 2007
@@ -34,20 +34,20 @@
#include "DrawingA.h"
#include "xgvis.h"
-void xgv_shift_clust_widgets(xgobidata *);
-void xgv_alloc_clust(xgobidata *);
-void xgv_addGroup(int, Widget, xgobidata *);
-void xgv_draw_cluster_symbol(xgobidata *, int);
-void xgv_mark_cluster_symbol(xgobidata *, int, int);
-void xgv_create_clust_widgets(xgobidata *);
+static void xgv_shift_clust_widgets(xgobidata *);
+static void xgv_alloc_clust(xgobidata *);
+static void xgv_addGroup(int, Widget, xgobidata *);
+static void xgv_draw_cluster_symbol(xgobidata *, int);
+static void xgv_mark_cluster_symbol(xgobidata *, int, int);
+static void xgv_create_clust_widgets(xgobidata *);
XtCallbackProc xgv_reset_clusters_cback (Widget, xgobidata *, XtPointer);
XtCallbackProc xgv_open_anchor_popup_cback(Widget, xgobidata *, XtPointer);
-XtCallbackProc xgv_symbol_reset_cb(Widget, xgobidata *, XawDrawingAreaCallbackStruct *);
-XtCallbackProc xgv_anchor_cback(Widget, xgobidata *, XtPointer);
-XtCallbackProc xgv_close_cback(Widget, xgobidata *, XtPointer);
-XtCallbackProc xgv_symbol_expose_cb(Widget, xgobidata *, XawDrawingAreaCallbackStruct *);
-XtCallbackProc xgv_exclude_cback(Widget, xgobidata *, XtPointer);
-XtCallbackProc xgv_hide_cback(Widget, xgobidata *, XtPointer);
+static XtCallbackProc xgv_symbol_reset_cb(Widget, xgobidata *, XawDrawingAreaCallbackStruct *);
+static XtCallbackProc xgv_anchor_cback(Widget, xgobidata *, XtPointer);
+static XtCallbackProc xgv_close_cback(Widget, xgobidata *, XtPointer);
+static XtCallbackProc xgv_symbol_expose_cb(Widget, xgobidata *, XawDrawingAreaCallbackStruct *);
+static XtCallbackProc xgv_exclude_cback(Widget, xgobidata *, XtPointer);
+static XtCallbackProc xgv_hide_cback(Widget, xgobidata *, XtPointer);
extern void save_group_names(xgobidata *);
extern void save_brush_groups(xgobidata *);

View File

@ -0,0 +1,18 @@
--- LocPixmap.c.orig Wed May 30 21:14:07 2007
+++ LocPixmap.c Wed May 30 21:14:31 2007
@@ -173,6 +173,7 @@
} /* if */
}
+static char **split_path_string();
/*
* XawLocatePixmapFile - read a pixmap file using the normal defaults
@@ -195,7 +196,6 @@
char **file_paths = NULL;
char filename[MAXPATHLEN];
int i;
- static char **split_path_string();
char *name;
XpmAttributes attributes;

View File

@ -0,0 +1,11 @@
--- icons.h.orig Wed May 30 21:09:38 2007
+++ icons.h Wed May 30 21:09:45 2007
@@ -53,7 +53,7 @@
void AddIconRegion(char *geom, int grav1, int grav2, int stepx, int stepy);
void IconDown (TwmWindow *tmp_win);
void IconUp (TwmWindow *tmp_win);
-void PlaceIcon(TwmWindow *tmp_win, int def_x, int def_y, int *final_x, int *final_y);
+static void PlaceIcon(TwmWindow *tmp_win, int def_x, int def_y, int *final_x, int *final_y);