mirror of
https://gitlab.com/buildroot.org/buildroot.git
synced 2026-09-30 22:11:59 -09:00
package/bandwidthd: fix build with gcc >= 14
Fix the following build failure with gcc >= 14:
parser.c: In function 'yyparse':
parser.c:1196:16: error: implicit declaration of function 'yylex' [-Wimplicit-function-declaration]
1196 | yychar = yylex ();
| ^~~~~
While at it, update Upstream tag of first patch
Fixes:
- http://autobuild.buildroot.org/results/33364071de4e5e51a2ac2337b82d145f71e0e64a
Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
This commit is contained in:
committed by
Thomas Petazzoni
parent
7103da7c96
commit
41cc0f2272
@@ -342,7 +342,6 @@ package/avahi/S05avahi-setup.sh lib_sysv.Indent lib_sysv.Variables
|
|||||||
package/avahi/S50avahi-daemon lib_sysv.Indent lib_sysv.Variables
|
package/avahi/S50avahi-daemon lib_sysv.Indent lib_sysv.Variables
|
||||||
package/babeld/S50babeld Shellcheck lib_sysv.Indent lib_sysv.Variables
|
package/babeld/S50babeld Shellcheck lib_sysv.Indent lib_sysv.Variables
|
||||||
package/babeltrace2/0001-configure-simplify-warning-flags-detection.patch lib_patch.Upstream
|
package/babeltrace2/0001-configure-simplify-warning-flags-detection.patch lib_patch.Upstream
|
||||||
package/bandwidthd/0001-src-bandwidthd.h-fix-build-with-gcc-10.patch lib_patch.Upstream
|
|
||||||
package/bash/0001-input.h-add-missing-include-on-stdio.h.patch lib_patch.Upstream
|
package/bash/0001-input.h-add-missing-include-on-stdio.h.patch lib_patch.Upstream
|
||||||
package/bash/0002-parse.y-fix-compilation-for-non-multibyte-builds.patch lib_patch.Upstream
|
package/bash/0002-parse.y-fix-compilation-for-non-multibyte-builds.patch lib_patch.Upstream
|
||||||
package/bash/0003-configure-invert-condition-for-strtoimax-builtin.patch lib_patch.Upstream
|
package/bash/0003-configure-invert-condition-for-strtoimax-builtin.patch lib_patch.Upstream
|
||||||
|
|||||||
@@ -15,7 +15,7 @@ Fixes:
|
|||||||
- http://autobuild.buildroot.org/results/6308c8ee38b6017215038d47c009b238113bd36f
|
- http://autobuild.buildroot.org/results/6308c8ee38b6017215038d47c009b238113bd36f
|
||||||
|
|
||||||
Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
|
Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
|
||||||
[Upstream status: https://github.com/nroach44/bandwidthd/pull/1]
|
Upstream: https://github.com/nroach44/bandwidthd/commit/dde68ed77114d7b19bfed3068edefc9dc0644445
|
||||||
---
|
---
|
||||||
src/bandwidthd.h | 4 ++--
|
src/bandwidthd.h | 4 ++--
|
||||||
src/graph.c | 1 +
|
src/graph.c | 1 +
|
||||||
|
|||||||
@@ -0,0 +1,36 @@
|
|||||||
|
From 96f5ad56b1bb872c2c24f0c83d06d94ae2936838 Mon Sep 17 00:00:00 2001
|
||||||
|
From: Fabrice Fontaine <fontaine.fabrice@gmail.com>
|
||||||
|
Date: Mon, 22 Jul 2024 14:08:45 +0200
|
||||||
|
Subject: [PATCH] src/parser.y: fix build with gcc >= 14
|
||||||
|
|
||||||
|
Fix the following build failure with gcc >= 14:
|
||||||
|
|
||||||
|
parser.c: In function 'yyparse':
|
||||||
|
parser.c:1196:16: error: implicit declaration of function 'yylex' [-Wimplicit-function-declaration]
|
||||||
|
1196 | yychar = yylex ();
|
||||||
|
| ^~~~~
|
||||||
|
|
||||||
|
Fixes:
|
||||||
|
- http://autobuild.buildroot.org/results/33364071de4e5e51a2ac2337b82d145f71e0e64a
|
||||||
|
|
||||||
|
Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
|
||||||
|
Upstream: https://github.com/nroach44/bandwidthd/pull/3
|
||||||
|
---
|
||||||
|
src/parser.y | 1 +
|
||||||
|
1 file changed, 1 insertion(+)
|
||||||
|
|
||||||
|
diff --git a/src/parser.y b/src/parser.y
|
||||||
|
index d9acc10..15ce61c 100644
|
||||||
|
--- a/src/parser.y
|
||||||
|
+++ b/src/parser.y
|
||||||
|
@@ -11,6 +11,7 @@
|
||||||
|
#include <arpa/inet.h>
|
||||||
|
#include "bandwidthd.h"
|
||||||
|
|
||||||
|
+extern int yylex (void);
|
||||||
|
extern unsigned int SubnetCount;
|
||||||
|
extern struct SubnetData SubnetTable[];
|
||||||
|
extern struct config config;
|
||||||
|
--
|
||||||
|
2.43.0
|
||||||
|
|
||||||
Reference in New Issue
Block a user