mirror of
https://github.com/vim/vim.git
synced 2025-10-06 05:44:14 -04:00
patch 8.2.1932: compiler warnings when building with Athena GUI
Problem: Compiler warnings when building with Athena GUI. Solution: Fix function signatures.
This commit is contained in:
@@ -179,9 +179,9 @@ static void SFdrawLists(int doScroll);
|
|||||||
static void SFdrawList(int n, int doScroll);
|
static void SFdrawList(int n, int doScroll);
|
||||||
static void SFclearList(int n, int doScroll);
|
static void SFclearList(int n, int doScroll);
|
||||||
static char SFstatChar(stat_T *statBuf);
|
static char SFstatChar(stat_T *statBuf);
|
||||||
static void SFmotionList(Widget w, int n, XMotionEvent *event);
|
static void SFmotionList(Widget w, XtPointer np, XMotionEvent *event, Boolean *cont);
|
||||||
static void SFvSliderMovedCallback(Widget w, int n, int nw);
|
static void SFvSliderMovedCallback(Widget w, int n, int nw);
|
||||||
static Boolean SFworkProc(void);
|
static Boolean SFworkProc(void *);
|
||||||
static int SFcompareEntries(const void *p, const void *q);
|
static int SFcompareEntries(const void *p, const void *q);
|
||||||
|
|
||||||
////////////////// xstat.h
|
////////////////// xstat.h
|
||||||
@@ -799,18 +799,21 @@ SFsetText(char *path)
|
|||||||
static void
|
static void
|
||||||
SFbuttonPressList(
|
SFbuttonPressList(
|
||||||
Widget w UNUSED,
|
Widget w UNUSED,
|
||||||
int n UNUSED,
|
XtPointer np UNUSED,
|
||||||
XButtonPressedEvent *event UNUSED)
|
XEvent *event UNUSED,
|
||||||
|
Boolean *cont UNUSED)
|
||||||
{
|
{
|
||||||
SFbuttonPressed = 1;
|
SFbuttonPressed = 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
static void
|
static void
|
||||||
SFbuttonReleaseList(
|
SFbuttonReleaseList(
|
||||||
Widget w,
|
Widget w UNUSED,
|
||||||
int n,
|
XtPointer np,
|
||||||
XButtonReleasedEvent *event)
|
XEvent *event UNUSED,
|
||||||
|
Boolean *cont UNUSED)
|
||||||
{
|
{
|
||||||
|
long n = (long)np;
|
||||||
SFDir *dir;
|
SFDir *dir;
|
||||||
|
|
||||||
SFbuttonPressed = 0;
|
SFbuttonPressed = 0;
|
||||||
@@ -823,7 +826,7 @@ SFbuttonReleaseList(
|
|||||||
dir = &(SFdirs[SFdirPtr + n]);
|
dir = &(SFdirs[SFdirPtr + n]);
|
||||||
SFreplaceText(dir,
|
SFreplaceText(dir,
|
||||||
dir->entries[dir->vOrigin + SFcurrentInvert[n]].shown);
|
dir->entries[dir->vOrigin + SFcurrentInvert[n]].shown);
|
||||||
SFmotionList(w, n, (XMotionEvent *) event);
|
SFmotionList(w, (XtPointer)(long)n, (XMotionEvent *)event, 0);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -1600,8 +1603,13 @@ SFnewInvertEntry(int n, XMotionEvent *event)
|
|||||||
}
|
}
|
||||||
|
|
||||||
static void
|
static void
|
||||||
SFenterList(Widget w UNUSED, int n, XEnterWindowEvent *event)
|
SFenterList(
|
||||||
|
Widget w UNUSED,
|
||||||
|
XtPointer np,
|
||||||
|
XEvent *event,
|
||||||
|
Boolean *cont UNUSED)
|
||||||
{
|
{
|
||||||
|
long n = (long)np;
|
||||||
int nw;
|
int nw;
|
||||||
|
|
||||||
// sanity
|
// sanity
|
||||||
@@ -1620,8 +1628,14 @@ SFenterList(Widget w UNUSED, int n, XEnterWindowEvent *event)
|
|||||||
}
|
}
|
||||||
|
|
||||||
static void
|
static void
|
||||||
SFleaveList(Widget w UNUSED, int n, XEvent *event UNUSED)
|
SFleaveList(
|
||||||
|
Widget w UNUSED,
|
||||||
|
XtPointer np,
|
||||||
|
XEvent *event UNUSED,
|
||||||
|
Boolean *cont UNUSED)
|
||||||
{
|
{
|
||||||
|
long n = (long)np;
|
||||||
|
|
||||||
if (SFcurrentInvert[n] != -1)
|
if (SFcurrentInvert[n] != -1)
|
||||||
{
|
{
|
||||||
SFinvertEntry(n);
|
SFinvertEntry(n);
|
||||||
@@ -1630,8 +1644,13 @@ SFleaveList(Widget w UNUSED, int n, XEvent *event UNUSED)
|
|||||||
}
|
}
|
||||||
|
|
||||||
static void
|
static void
|
||||||
SFmotionList(Widget w UNUSED, int n, XMotionEvent *event)
|
SFmotionList(
|
||||||
|
Widget w UNUSED,
|
||||||
|
XtPointer np,
|
||||||
|
XMotionEvent *event UNUSED,
|
||||||
|
Boolean *cont UNUSED)
|
||||||
{
|
{
|
||||||
|
long n = (long)np;
|
||||||
int nw;
|
int nw;
|
||||||
|
|
||||||
nw = SFnewInvertEntry(n, event);
|
nw = SFnewInvertEntry(n, event);
|
||||||
@@ -1954,7 +1973,7 @@ SFpathAreaSelectedCallback(
|
|||||||
}
|
}
|
||||||
|
|
||||||
static Boolean
|
static Boolean
|
||||||
SFworkProc(void)
|
SFworkProc(void *arg UNUSED)
|
||||||
{
|
{
|
||||||
SFDir *dir;
|
SFDir *dir;
|
||||||
SFEntry *entry;
|
SFEntry *entry;
|
||||||
|
@@ -750,6 +750,8 @@ static char *(features[]) =
|
|||||||
|
|
||||||
static int included_patches[] =
|
static int included_patches[] =
|
||||||
{ /* Add new patch number below this line */
|
{ /* Add new patch number below this line */
|
||||||
|
/**/
|
||||||
|
1932,
|
||||||
/**/
|
/**/
|
||||||
1931,
|
1931,
|
||||||
/**/
|
/**/
|
||||||
|
Reference in New Issue
Block a user