File fix_gcc12_errors.patch of Package cde
diff -Nraub cde-2.5.1.ori/lib/DtHelp/FormatSDL.c cde-2.5.1/lib/DtHelp/FormatSDL.c
--- cde-2.5.1.ori/lib/DtHelp/FormatSDL.c 2022-10-01 13:18:27.000000000 -0400
+++ cde-2.5.1/lib/DtHelp/FormatSDL.c 2023-01-25 00:54:26.638816531 -0400
@@ -8757,6 +8758,7 @@
segments = _DtCvNextSeg(segments);
}
+ return(0);
} /* End SetGhostLink */
/******************************************************************************
diff -Nraub cde-2.5.1.ori/lib/DtHelp/Graphics.c cde-2.5.1/lib/DtHelp/Graphics.c
--- cde-2.5.1.ori/lib/DtHelp/Graphics.c 2022-10-01 13:18:27.000000000 -0400
+++ cde-2.5.1/lib/DtHelp/Graphics.c 2023-01-25 00:54:26.638816531 -0400
@@ -2916,6 +2916,7 @@
return (num_items);
}
}
+ return(0);
}
/******************************************************************************
@@ -2969,6 +2970,7 @@
else
return(-1); /* Failure */
}
+ return(0);
}
/******************************************************************************
@@ -2997,6 +2999,7 @@
else
return ((unsigned char) *(stream->source.buffer.current++));
}
+ return(0);
}
/******************************************************************************
@@ -3058,4 +3061,5 @@
*buffer = '\0';
return (save);
}
+ return(0);
}
diff -Nraub cde-2.5.1.ori/lib/DtHelp/Selection.c cde-2.5.1/lib/DtHelp/Selection.c
--- cde-2.5.1.ori/lib/DtHelp/Selection.c 2022-10-01 13:18:27.000000000 -0400
+++ cde-2.5.1/lib/DtHelp/Selection.c 2023-01-25 00:54:26.638816531 -0400
@@ -392,6 +392,7 @@
*pt2 = *pt1;
*pt1 = temp;
}
+ return(0);
}
/*****************************************************************************
diff -Nraub cde-2.5.1.ori/lib/DtHelp/il/ilpipe.c cde-2.5.1/lib/DtHelp/il/ilpipe.c
--- cde-2.5.1.ori/lib/DtHelp/il/ilpipe.c 2022-10-01 13:18:27.000000000 -0400
+++ cde-2.5.1/lib/DtHelp/il/ilpipe.c 2023-01-25 00:54:26.638816531 -0400
@@ -1364,6 +1364,7 @@
} /* END while true: execute strips */
} /* END switch pipe state */
+ return(0);
}
diff -Nraub cde-2.5.1.ori/lib/DtSearch/dtsrjoint.c cde-2.5.1/lib/DtSearch/dtsrjoint.c
--- cde-2.5.1.ori/lib/DtSearch/dtsrjoint.c 2022-10-01 13:18:27.000000000 -0400
+++ cde-2.5.1/lib/DtSearch/dtsrjoint.c 2023-01-25 00:54:26.638816531 -0400
@@ -584,6 +584,7 @@
ditsort_type);
DtSearchExit (32);
}
+ return(0);
} /* ditto_sort() */
diff -Nraub cde-2.5.1.ori/lib/DtSvc/DtUtil1/ActionTt.c cde-2.5.1/lib/DtSvc/DtUtil1/ActionTt.c
--- cde-2.5.1.ori/lib/DtSvc/DtUtil1/ActionTt.c 2022-10-01 13:18:27.000000000 -0400
+++ cde-2.5.1/lib/DtSvc/DtUtil1/ActionTt.c 2023-01-25 00:54:26.638816531 -0400
@@ -856,6 +856,7 @@
return( DtACT_TT_REP_INT);
else if (status == TT_ERR_NUM)
return( DtACT_TT_REP_BUFFER );
+ return(0);
}
/******************************************************************************
diff -Nraub cde-2.5.1.ori/lib/csa/match.c cde-2.5.1/lib/csa/match.c
--- cde-2.5.1.ori/lib/csa/match.c 2022-10-01 13:18:27.000000000 -0400
+++ cde-2.5.1/lib/csa/match.c 2023-01-25 00:54:26.638816531 -0400
@@ -1049,6 +1049,7 @@
defalut:
return (B_FALSE);
}
+ return(0);
}
static Attribute_4 *
diff -Nraub cde-2.5.1.ori/programs/dtappbuilder/src/abmf/resource_file.c cde-2.5.1/programs/dtappbuilder/src/abmf/resource_file.c
--- cde-2.5.1.ori/programs/dtappbuilder/src/abmf/resource_file.c 2022-10-01 13:18:27.000000000 -0400
+++ cde-2.5.1/programs/dtappbuilder/src/abmf/resource_file.c 2023-01-25 00:54:26.638816531 -0400
@@ -454,6 +454,8 @@
else if (userSegOff >= 0)
return userSegOff;
+
+ return(0);
}
diff -Nraub cde-2.5.1.ori/programs/dtcm/server/cmscalendar.c cde-2.5.1/programs/dtcm/server/cmscalendar.c
--- cde-2.5.1.ori/programs/dtcm/server/cmscalendar.c 2022-10-01 13:18:27.000000000 -0400
+++ cde-2.5.1/programs/dtcm/server/cmscalendar.c 2023-01-25 00:54:26.638816531 -0400
@@ -611,6 +611,7 @@
case rb_other:
return (CSA_E_FAILURE);
}
+ return (CSA_SUCCESS);
}
extern void
diff -Nraub cde-2.5.1.ori/programs/dtcreate/FileCharacteristics.c cde-2.5.1/programs/dtcreate/FileCharacteristics.c
--- cde-2.5.1.ori/programs/dtcreate/FileCharacteristics.c 2022-10-01 13:18:27.000000000 -0400
+++ cde-2.5.1/programs/dtcreate/FileCharacteristics.c 2023-01-25 00:54:26.638816531 -0400
@@ -173,6 +173,7 @@
return((ushort)CA_FT_CNTLONG);
}
/* NOTREACHED */
+ return(0);
}
/******************************************************************************/
diff -Nraub cde-2.5.1.ori/programs/dtdocbook/instant/tables.c cde-2.5.1/programs/dtdocbook/instant/tables.c
--- cde-2.5.1.ori/programs/dtdocbook/instant/tables.c 2022-10-01 13:18:27.000000000 -0400
+++ cde-2.5.1/programs/dtdocbook/instant/tables.c 2023-01-25 00:55:48.044240590 -0400
@@ -1303,6 +1303,7 @@
case Char: return 'd';
case Span: return 's';
}
+ return(0);
}
/* TblGetWidth() -- get width spec, if any, for a entry
diff -Nraub cde-2.5.1.ori/programs/dtfile/OverWrite.c cde-2.5.1/programs/dtfile/OverWrite.c
--- cde-2.5.1.ori/programs/dtfile/OverWrite.c 2022-10-01 13:18:27.000000000 -0400
+++ cde-2.5.1/programs/dtfile/OverWrite.c 2023-01-25 00:54:26.638816531 -0400
@@ -2160,6 +2160,7 @@
} /* end switch (message) */
+ return(0);
} /* end getVariableMessage */
static Boolean
diff -Nraub cde-2.5.1.ori/programs/dticon/image.c cde-2.5.1/programs/dticon/image.c
--- cde-2.5.1.ori/programs/dticon/image.c 2022-10-01 13:18:27.000000000 -0400
+++ cde-2.5.1/programs/dticon/image.c 2023-01-25 00:54:26.642816404 -0400
@@ -555,4 +555,5 @@
l = x;
} while (x<=x2);
}
+ return(0);
}
diff -Nraub cde-2.5.1.ori/programs/dtksh/dtkcmds.c cde-2.5.1/programs/dtksh/dtkcmds.c
--- cde-2.5.1.ori/programs/dtksh/dtkcmds.c 2022-10-01 13:18:27.000000000 -0400
+++ cde-2.5.1/programs/dtksh/dtkcmds.c 2023-01-25 00:54:26.642816404 -0400
@@ -2389,6 +2389,7 @@
{
invalidFont = True;
+ return(0);
}
static int
@@ -2962,6 +2963,7 @@
char *argv[] )
{
invokeXDrawFunction(DRAW_ARC, argc, argv);
+ return(0);
}
int
@@ -2970,6 +2972,7 @@
char *argv[] )
{
invokeXDrawFunction(DRAW_IMAGE_STRING, argc, argv);
+ return(0);
}
int
@@ -2978,6 +2981,7 @@
char *argv[] )
{
invokeXDrawFunction(DRAW_LINE, argc, argv);
+ return(0);
}
int
@@ -2986,6 +2990,7 @@
char *argv[] )
{
invokeXDrawFunction(DRAW_LINES, argc, argv);
+ return(0);
}
int
@@ -2994,6 +2999,7 @@
char *argv[] )
{
invokeXDrawFunction(DRAW_POINT, argc, argv);
+ return(0);
}
int
@@ -3002,6 +3008,7 @@
char *argv[] )
{
invokeXDrawFunction(DRAW_POINTS, argc, argv);
+ return(0);
}
int
@@ -3010,6 +3017,7 @@
char *argv[] )
{
invokeXDrawFunction(DRAW_RECTANGLE, argc, argv);
+ return(0);
}
int
@@ -3029,6 +3037,7 @@
}
invokeXDrawFunction(COPY_AREA, argc, argv);
+ return(0);
}
int
@@ -3037,6 +3046,7 @@
char *argv[] )
{
invokeXDrawFunction(DRAW_SEGMENTS, argc, argv);
+ return(0);
}
int
@@ -3045,6 +3055,7 @@
char *argv[] )
{
invokeXDrawFunction(DRAW_STRING, argc, argv);
+ return(0);
}
int
@@ -3053,6 +3064,7 @@
char *argv[] )
{
invokeXDrawFunction(FILL_ARC, argc, argv);
+ return(0);
}
int
@@ -3061,6 +3073,7 @@
char *argv[] )
{
invokeXDrawFunction(FILL_POLYGON, argc, argv);
+ return(0);
}
int
@@ -3069,6 +3082,7 @@
char *argv[] )
{
invokeXDrawFunction(FILL_RECTANGLE, argc, argv);
+ return(0);
}
int
@@ -3077,6 +3091,7 @@
char *argv[] )
{
invokeXDrawFunction(CLEAR_AREA, argc, argv);
+ return(0);
}
int
@@ -3085,6 +3100,7 @@
char *argv[] )
{
invokeXDrawFunction(CLEAR_WINDOW, argc, argv);
+ return(0);
}
int
diff -Nraub cde-2.5.1.ori/programs/dtksh/xmcmds.c cde-2.5.1/programs/dtksh/xmcmds.c
--- cde-2.5.1.ori/programs/dtksh/xmcmds.c 2022-10-01 13:18:27.000000000 -0400
+++ cde-2.5.1/programs/dtksh/xmcmds.c 2023-01-25 00:54:26.642816404 -0400
@@ -2568,6 +2568,7 @@
Display *display,
XEvent *event )
{
+ return(0);
}
diff -Nraub cde-2.5.1.ori/programs/dtlogin/socket.c cde-2.5.1/programs/dtlogin/socket.c
--- cde-2.5.1.ori/programs/dtlogin/socket.c 2022-10-01 13:18:27.000000000 -0400
+++ cde-2.5.1/programs/dtlogin/socket.c 2023-01-25 00:54:26.642816404 -0400
@@ -156,6 +156,7 @@
if (chooserFd > WellKnownSocketsMax)
WellKnownSocketsMax = chooserFd;
FD_SET (chooserFd, &WellKnownSocketsMask);
+ return(0);
}
int
diff -Nraub cde-2.5.1.ori/programs/dtpad/main.c cde-2.5.1/programs/dtpad/main.c
--- cde-2.5.1.ori/programs/dtpad/main.c 2022-10-01 13:18:27.000000000 -0400
+++ cde-2.5.1/programs/dtpad/main.c 2023-01-25 00:54:26.642816404 -0400
@@ -1739,6 +1739,7 @@
value = tt_message_arg_val(m, 1);
waitCB = 0;
}
+ return(0);
}
/************************************************************************
diff -Nraub cde-2.5.1.ori/programs/dtpdm/PdmOid.c cde-2.5.1/programs/dtpdm/PdmOid.c
--- cde-2.5.1.ori/programs/dtpdm/PdmOid.c 2022-10-01 13:18:27.000000000 -0400
+++ cde-2.5.1/programs/dtpdm/PdmOid.c 2023-01-25 00:54:26.642816404 -0400
@@ -1662,6 +1662,7 @@
return NOTIFY_EMAIL_STR;
break;
}
+ return(0);
}
/*
diff -Nraub cde-2.5.1.ori/programs/dtprintinfo/libUI/MotifUI/Debug.c cde-2.5.1/programs/dtprintinfo/libUI/MotifUI/Debug.c
--- cde-2.5.1.ori/programs/dtprintinfo/libUI/MotifUI/Debug.c 2022-10-01 13:18:27.000000000 -0400
+++ cde-2.5.1/programs/dtprintinfo/libUI/MotifUI/Debug.c 2023-01-25 00:54:26.642816404 -0400
@@ -71,6 +71,7 @@
kill(getpid(), SIGQUIT);
else
exit(1);
+ return(0);
}
/*
@@ -94,6 +95,7 @@
kill(getpid(), SIGQUIT);
else
exit(1);
+ return(0);
}
/*
diff -Nraub cde-2.5.1.ori/programs/dtprintinfo/libUI/MotifUI/Icon.c cde-2.5.1/programs/dtprintinfo/libUI/MotifUI/Icon.c
--- cde-2.5.1.ori/programs/dtprintinfo/libUI/MotifUI/Icon.c 2022-10-01 13:18:27.000000000 -0400
+++ cde-2.5.1/programs/dtprintinfo/libUI/MotifUI/Icon.c 2023-01-25 00:54:26.642816404 -0400
@@ -2049,6 +2049,7 @@
desired->width = 1;
if (desired->height == 0)
desired->height = 1;
+ return(0);
}
/*
diff -Nraub cde-2.5.1.ori/programs/dtstyle/ColorEdit.c cde-2.5.1/programs/dtstyle/ColorEdit.c
--- cde-2.5.1.ori/programs/dtstyle/ColorEdit.c 2022-10-01 13:18:27.000000000 -0400
+++ cde-2.5.1/programs/dtstyle/ColorEdit.c 2023-01-25 00:54:26.646816277 -0400
@@ -1411,6 +1411,7 @@
if(z >= y && z >= x)
return(z);
+ return(0);
}
/************************************************************************
@@ -1431,6 +1432,7 @@
if(z <= y && z <= x)
return(z);
+ return(0);
}
/************************************************************************