Processed: Re: Bug#957914: Patch to fix linking with gcc-10

2020-07-28 Thread Debian Bug Tracking System
Processing control commands:

> tags -1 pending
Bug #957914 [src:viking] viking: ftbfs with GCC-10
Added tag(s) pending.

-- 
957914: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=957914
Debian Bug Tracking System
Contact ow...@bugs.debian.org with problems



Bug#957914: Patch to fix linking with gcc-10

2020-07-28 Thread Paul Gevers
Control: tags -1 pending

Hi arnold,

On 28-07-2020 21:52, arnold metselaar wrote:
> Below and attached is a patch to make viking compile and link properly
> with gcc-10.

Awesome. Building right now.

Paul



signature.asc
Description: OpenPGP digital signature


Bug#957914: Patch to fix linking with gcc-10

2020-07-28 Thread arnold metselaar
Dear maintainer,

Below and attached is a patch to make viking compile and link properly with
gcc-10.

Suggested changelog entry:

src/babel.h (a_babel_file_list, a_babel_device_list): declare global
variables as extern, closes #957914

Kind regards,
Arnold Metselaar
---

diff --git a/src/babel.h b/src/babel.h
index ae2fa959..e2c18e6c 100644
--- a/src/babel.h
+++ b/src/babel.h
@@ -109,8 +109,8 @@ typedef struct {
 gchar *label;
 } BabelFile;

-GList *a_babel_file_list;
-GList *a_babel_device_list;
+extern GList *a_babel_file_list;
+extern GList *a_babel_device_list;

 void a_babel_foreach_file_with_mode (BabelMode mode, GFunc func, gpointer
user_data);
 void a_babel_foreach_file_read_any (GFunc func, gpointer user_data);
diff --git a/src/babel.h b/src/babel.h
index ae2fa959..e2c18e6c 100644
--- a/src/babel.h
+++ b/src/babel.h
@@ -109,8 +109,8 @@ typedef struct {
 gchar *label;
 } BabelFile;
 
-GList *a_babel_file_list;
-GList *a_babel_device_list;
+extern GList *a_babel_file_list;
+extern GList *a_babel_device_list;
 
 void a_babel_foreach_file_with_mode (BabelMode mode, GFunc func, gpointer user_data);
 void a_babel_foreach_file_read_any (GFunc func, gpointer user_data);