File: no-zero-size-arrays.patch

package info (click to toggle)
metview 5.25.1-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 611,896 kB
  • sloc: cpp: 551,741; ansic: 44,633; xml: 19,933; f90: 17,797; sh: 7,213; python: 5,565; yacc: 2,318; lex: 1,372; perl: 701; makefile: 87
file content (24 lines) | stat: -rw-r--r-- 823 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
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

--- a/metview/src/Macro/mvimportDesktop.c
+++ b/metview/src/Macro/mvimportDesktop.c
@@ -77,10 +77,13 @@
 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);