aboutsummaryrefslogtreecommitdiffstats
path: root/cad/qmls
diff options
context:
space:
mode:
authortobik <tobik@FreeBSD.org>2018-08-25 12:04:01 +0800
committertobik <tobik@FreeBSD.org>2018-08-25 12:04:01 +0800
commit5a8f5ac17e85fd5d4dca2b8fdd09be328f92e5df (patch)
tree897e889d9219fc349025bd939ded1d9c58be8f8c /cad/qmls
parentbf245010fd86e3d5286f1fdb8eaec152951cfb37 (diff)
downloadfreebsd-ports-gnome-5a8f5ac17e85fd5d4dca2b8fdd09be328f92e5df.tar.gz
freebsd-ports-gnome-5a8f5ac17e85fd5d4dca2b8fdd09be328f92e5df.tar.zst
freebsd-ports-gnome-5a8f5ac17e85fd5d4dca2b8fdd09be328f92e5df.zip
cad/qmls: Fix build with Clang 6
cdl.cpp:128:24: error: cast from pointer to smaller type 'char' loses information buf[index] = (char)NULL; ^~~~~~~~~~ http://beefy11.nyi.freebsd.org/data/head-i386-default/p477696_s338122/logs/errors/qmls-0.2.log
Diffstat (limited to 'cad/qmls')
-rw-r--r--cad/qmls/files/patch-qmls_cdl.cpp36
1 files changed, 36 insertions, 0 deletions
diff --git a/cad/qmls/files/patch-qmls_cdl.cpp b/cad/qmls/files/patch-qmls_cdl.cpp
new file mode 100644
index 000000000000..979a7080559a
--- /dev/null
+++ b/cad/qmls/files/patch-qmls_cdl.cpp
@@ -0,0 +1,36 @@
+--- qmls/cdl.cpp.orig 2018-08-25 04:01:56 UTC
++++ qmls/cdl.cpp
+@@ -125,7 +125,7 @@ istream& operator>>(istream& ins, CanonicalDecimalList
+ case ',':
+ if (index != 0)
+ {
+- buf[index] = (char)NULL;
++ buf[index] = '\0';
+ str = buf;
+ inputStack.Push(str);
+ index = 0;
+@@ -175,7 +175,7 @@ istream& operator>>(istream& ins, CanonicalDecimalList
+ case ',':
+ if (index != 0)
+ {
+- buf[index] = (char)NULL;
++ buf[index] = '\0';
+ careStack.Push(atoi(buf));
+ index = 0;
+ }
+@@ -226,7 +226,7 @@ istream& operator>>(istream& ins, CanonicalDecimalList
+ case ',':
+ if (index != 0)
+ {
+- buf[index] = (char)NULL;
++ buf[index] = '\0';
+ dontCareStack.Push(atoi(buf));
+ index = 0;
+ }
+@@ -295,4 +295,4 @@ bool GetAlphaNumeric(istream& ins, char& ch)
+ return true;
+ }
+ return false;
+-}
+\ No newline at end of file
++}