File: avoid-implicit-declaration.patch

package info (click to toggle)
xcircuit 3.9.73%2Bdfsg.1-2.1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 8,652 kB
  • sloc: ansic: 80,417; sh: 7,295; tcl: 5,891; python: 449; makefile: 300
file content (26 lines) | stat: -rw-r--r-- 925 bytes parent folder | download
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
From 323c4c437b0eb027ac5acbd2d0c5b6d62a38befb Mon Sep 17 00:00:00 2001
From: Florian Weimer <fweimer@redhat.com>
Date: Tue, 11 Apr 2023 09:03:09 +0200
Subject: [PATCH] Declare UDrawXAt in prototypes.h

This avoids an implicit function declaration in functions.c for
HAVE_CAIRO.  Future compilers will not accept such implicit function
declarations by default, leading to a build failure.

Forwarded: yes
---
 prototypes.h | 1 +
 1 file changed, 1 insertion(+)

diff --git a/prototypes.h b/prototypes.h
index d577c85..5ec4b27 100644
--- a/prototypes.h
+++ b/prototypes.h
@@ -431,6 +431,7 @@ extern void UDrawSimpleLine(XPoint *, XPoint *);
 extern void UDrawLine(XPoint *, XPoint *);
 extern void UDrawCircle(XPoint *, u_char);
 extern void UDrawX(labelptr);
+extern void UDrawXAt(XPoint *);
 extern void UDrawXDown(labelptr);
 extern int  toplevelwidth(objinstptr, short *);
 extern int  toplevelheight(objinstptr, short *);