File: error-function-declaration-without-prototype.patch

package info (click to toggle)
libgda5 5.2.10-7
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 76,124 kB
  • sloc: ansic: 495,319; xml: 10,486; yacc: 5,165; sh: 4,451; makefile: 4,095; php: 1,416; java: 1,300; javascript: 1,298; python: 896; sql: 879; perl: 116
file content (34 lines) | stat: -rw-r--r-- 1,192 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
27
28
29
30
31
32
33
34
From: =?utf-8?q?Ahmed_Ba=C3=AFzid?= <ahmed.baizid.0@gmail.com>
Date: Sat, 31 Aug 2024 22:18:56 +0100
Subject: error: function declaration without prototype

Function declaration with no prototype are forbidden in C23.

See: https://www.open-std.org/jtc1/sc22/wg14/www/docs/n2841.htm

Bug: https://gitlab.gnome.org/GNOME/libgda/-/issues/272
Forwarded: https://gitlab.gnome.org/GNOME/libgda/-/merge_requests/208
Bug-Debian: https://bugs.debian.org/1097190
---
 libgda/sql-parser/lemon.c | 8 --------
 1 file changed, 8 deletions(-)

diff --git a/libgda/sql-parser/lemon.c b/libgda/sql-parser/lemon.c
index afab40f..53adb1f 100644
--- a/libgda/sql-parser/lemon.c
+++ b/libgda/sql-parser/lemon.c
@@ -69,14 +69,6 @@ struct action;
 static struct action *Action_new(void);
 static struct action *Action_sort(struct action *);
 
-/********** From the file "build.h" ************************************/
-void FindRulePrecedences();
-void FindFirstSets();
-void FindStates();
-void FindLinks();
-void FindFollowSets();
-void FindActions();
-
 /********* From the file "configlist.h" *********************************/
 void Configlist_init(void);
 struct config *Configlist_add(struct rule *, int);