From db6bc58c5947a2e7f73184a74ee4b9937ff3bc8e Mon Sep 17 00:00:00 2001 From: Raphael Kubo da Costa Date: Fri, 16 Feb 2018 22:50:47 +0000 Subject: [PATCH] Add a patch to fix the build with clang 6. toplsqltext.cpp:80:19: error: cannot initialize a member subobject of type 'const char *' with an rvalue of type 'bool' { NULL, NULL, false, false} ^~~~~ --- databases/tora/files/patch-src_toplsqltext.cpp | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 databases/tora/files/patch-src_toplsqltext.cpp diff --git a/databases/tora/files/patch-src_toplsqltext.cpp b/databases/tora/files/patch-src_toplsqltext.cpp new file mode 100644 index 000000000000..407abdeed099 --- /dev/null +++ b/databases/tora/files/patch-src_toplsqltext.cpp @@ -0,0 +1,16 @@ +Fix the build with clang 6. + +toplsqltext.cpp:80:19: error: cannot initialize a member subobject of type 'const char *' with an rvalue of type 'bool' + { NULL, NULL, false, false} + ^~~~~ +--- src/toplsqltext.cpp.orig 2018-02-16 21:47:29 UTC ++++ src/toplsqltext.cpp +@@ -77,7 +77,7 @@ TypeMap[] = { { "FUNCTION", "Fc", ":/icons/function.pn + { "LOOP", "Loop", NULL, false, false}, + { "WHILE", "Loop", NULL, false, false}, + { "FOR", "Loop", NULL, false, false}, +- { NULL, NULL, false, false} ++ { NULL, NULL, NULL, false, false} + }; + +