1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57
|
Description: Fix implicit declarations
.
xcolors (1.5a-10) UNRELEASED; urgency=medium
.
* Fix gcc-14 build issues (closes: #1075653)
Author: Fredrik Hallenberg <hallon@debian.org>
Bug-Debian: https://bugs.debian.org/1075653
---
The information above should follow the Patch Tagging Guidelines, please
checkout https://dep.debian.net/deps/dep3/ to learn about the format. Here
are templates for supplementary fields that you might want to add:
Origin: (upstream|backport|vendor|other), (<patch-url>|commit:<commit-id>)
Bug: <upstream-bugtracker-url>
Bug-Debian: https://bugs.debian.org/<bugnumber>
Bug-Ubuntu: https://launchpad.net/bugs/<bugnumber>
Forwarded: (no|not-needed|<patch-forwarded-url>)
Applied-Upstream: <version>, (<commit-url>|commit:<commid-id>)
Reviewed-By: <name and email of someone who approved/reviewed the patch>
Last-Update: 2024-11-23
--- xcolors-1.5a.orig/xcolors.c
+++ xcolors-1.5a/xcolors.c
@@ -26,6 +26,8 @@
#include <stdio.h>
#include <ctype.h>
#include <math.h> /* for sqrt() */
+#include <stdlib.h>
+#include <stdio.h>
#ifndef RGB_TXT
#define RGB_TXT "/etc/X11/rgb.txt"
@@ -177,8 +179,10 @@ XtActionsRec actionTable[] = {
{"set-background", set_background},
};
+void colordemo(Widget parent, char *startcolor, XColor nearcolor, int maxdist);
+int l_strcasecmp(char *s1, char *s2);
-main(argc, argv)
+int main(argc, argv)
int argc;
char *argv[];
{
@@ -263,9 +267,10 @@ main(argc, argv)
XtMapWidget(toplevel);
XtAppMainLoop(app_context);
/* NOTREACHED */
+ return 0;
}
-colordemo(parent, startcolor, nearcolor, maxdist)
+void colordemo(parent, startcolor, nearcolor, maxdist)
Widget parent;
char *startcolor;
XColor nearcolor; /* scaled 0-255 */
|