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);
|