Package: metview / 5.10.2-1

no-zero-size-arrays.patch Patch series | 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
Description: Fix for compilation error where g++ fails on zero-sized arrays
Author: Alastair McKinstry <mckinstry@debian.org>
Last-Updated: 2020-04-06
Forwarded: no

Index: metview-5.10.0/metview/src/Macro/mvimportDesktop.c
===================================================================
--- metview-5.10.0.orig/metview/src/Macro/mvimportDesktop.c
+++ metview-5.10.0/metview/src/Macro/mvimportDesktop.c
@@ -77,11 +77,13 @@ typedef struct translation
 translation python_translations[] = {
     {"class", "class_"}};
 
-translation macro_translations[] = {};
+// translation macro_translations[] = {};
 
-translation* translations = macro_translations;
-size_t num_translations   = sizeof(macro_translations) / sizeof(translation);
+//translation* translations = macro_translations;
+//size_t num_translations   = sizeof(macro_translations) / sizeof(translation);
 
+translation *translations = NULL;
+size_t num_translations = 0;
 
 const char* import(FILE* f, const char* icon, const char* className);
 static void formula1(FILE* f, const char* ref, math* m, math* p);