Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 4 Jul 2018 11:39:57 +0000 (UTC)
From:      Tobias Kortkamp <tobik@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r473877 - head/sysutils/qpxtool/files
Message-ID:  <201807041139.w64Bdvu0046347@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: tobik
Date: Wed Jul  4 11:39:57 2018
New Revision: 473877
URL: https://svnweb.freebsd.org/changeset/ports/473877

Log:
  sysutils/qpxtool: Fix build with Clang 6
  
  src/mainwindow.cpp:1646:44: error: invalid suffix on literal; C++11 requires a space between literal and identifier [-Wreserved-user-defined-literal]
                  r+= "<img src=\""+idir+"/ft.png\" width="HTML_GRAPH_WQ" height="HTML_GRAPH_HQ">";
                                                           ^
  
  http://beefy11.nyi.freebsd.org/data/head-i386-default/p473363_s335650/logs/qpxtool-0.7.2_4.log

Modified:
  head/sysutils/qpxtool/files/patch-gui_src_mainwindow.cpp

Modified: head/sysutils/qpxtool/files/patch-gui_src_mainwindow.cpp
==============================================================================
--- head/sysutils/qpxtool/files/patch-gui_src_mainwindow.cpp	Wed Jul  4 10:37:44 2018	(r473876)
+++ head/sysutils/qpxtool/files/patch-gui_src_mainwindow.cpp	Wed Jul  4 11:39:57 2018	(r473877)
@@ -9,3 +9,96 @@
  	mwidget->selectTab(idx);
  }
  
+@@ -1477,7 +1477,7 @@ QString QPxToolMW::generate_html(device *dev, QString 
+ 		r+= "<br>\n";
+ 		
+ 		r+= "<table border=0 cellspacing=0 align=\"center\">\n\t<tr><td align=\"center\">";
+-		r+= "<img src=\""+idir+"/rt.png\" alt=\"Read Transfer\" width="HTML_GRAPH_WQ" height="HTML_GRAPH_HQ">";
++		r+= "<img src=\""+idir+"/rt.png\" alt=\"Read Transfer\" width=" HTML_GRAPH_WQ " height=" HTML_GRAPH_HQ ">";
+ //		r+= "<br>Read Transfer";
+ 		r+= "</td></tr>\n</table><br>\n";
+ 	}
+@@ -1508,7 +1508,7 @@ QString QPxToolMW::generate_html(device *dev, QString 
+ 		r+= "<br>\n";
+ 
+ 		r+= "<table border=0 cellspacing=0 align=\"center\">\n\t<tr><td align=\"center\">";
+-		r+= "<img src=\""+idir+"/wt.png\" alt=\"Write Transfer\" width="HTML_GRAPH_WQ" height="HTML_GRAPH_HQ">";
++		r+= "<img src=\""+idir+"/wt.png\" alt=\"Write Transfer\" width=" HTML_GRAPH_WQ " height=" HTML_GRAPH_HQ ">";
+ //		r+= "<br>Write Transfer";
+ 		r+= "</td></tr>\n</table><br>\n";
+ 	}
+@@ -1571,7 +1571,7 @@ QString QPxToolMW::generate_html(device *dev, QString 
+ 		r+= "<br>\n";
+ 
+ 		r+= "<table border=0 cellspacing=0 align=\"center\">\n\t<tr><td align=\"center\">";
+-		r+= "<img src=\""+idir+"/errc.png\" alt=\"Error correction\" width="HTML_GRAPH_WQ" height="HTML_GRAPH_HQ">\n";
++		r+= "<img src=\""+idir+"/errc.png\" alt=\"Error correction\" width=" HTML_GRAPH_WQ " height=" HTML_GRAPH_HQ ">\n";
+ 		r+= "<br>Overall ERRC Graph";
+ 		r+= "</td></tr></table><br>\n";
+ 
+@@ -1580,7 +1580,7 @@ QString QPxToolMW::generate_html(device *dev, QString 
+ 			for (int i=0; i<8; i++) {
+ 				if (!dev->media.tdata_errc || (dev->media.tdata_errc & (1<<i))) {
+ 					r+= "<table border=0 cellspacing=0 align=\"center\">\n\t<tr><td align=\"center\">";
+-					r+= "\t<img src=\""+idir+"/"+errcNameCD[i]+".png\" width="HTML_GRAPH_WQ" height="HTML_GRAPH_HQ">";
++					r+= "\t<img src=\""+idir+"/"+errcNameCD[i]+".png\" width=" HTML_GRAPH_WQ " height=" HTML_GRAPH_HQ ">";
+ 					r+= "<br>"+errcNameCD[i];
+ 					r+= "</td></tr>\n</table><br>\n";
+ 				}
+@@ -1589,7 +1589,7 @@ QString QPxToolMW::generate_html(device *dev, QString 
+ 			for (int i=1; i<8; i++) {
+ 				if (!dev->media.tdata_errc || (dev->media.tdata_errc & (1<<i))) {
+ 					r+= "<table border=0 cellspacing=0 align=\"center\">\n\t<tr><td align=\"center\">";
+-					r+= "\t<img src=\""+idir+"/"+errcNameDVD[i]+".png\" width="HTML_GRAPH_WQ" height="HTML_GRAPH_HQ">";
++					r+= "\t<img src=\""+idir+"/"+errcNameDVD[i]+".png\" width=" HTML_GRAPH_WQ " height=" HTML_GRAPH_HQ ">";
+ 					r+= "<br>"+errcNameDVD[i];
+ 					r+= "</td></tr>\n</table><br>\n";
+ 				}
+@@ -1599,7 +1599,7 @@ QString QPxToolMW::generate_html(device *dev, QString 
+ 			for (int i=0; i<3; i++) {
+ 				if (!dev->media.tdata_errc || (dev->media.tdata_errc & (1<<residx[i]))) {
+ 					r+= "<table border=0 cellspacing=0 align=\"center\">\n\t<tr><td align=\"center\">";
+-					r+= "\t<img src=\""+idir+"/"+errcNameBD[residx[i]]+".png\" width="HTML_GRAPH_WQ" height="HTML_GRAPH_HQ">";
++					r+= "\t<img src=\""+idir+"/"+errcNameBD[residx[i]]+".png\" width=" HTML_GRAPH_WQ " height=" HTML_GRAPH_HQ ">";
+ 					r+= "<br>"+errcNameBD[residx[i]];
+ 					r+= "</td></tr>\n</table><br>\n";
+ 				}
+@@ -1626,7 +1626,7 @@ QString QPxToolMW::generate_html(device *dev, QString 
+ 		r+= "\t</table>\n";
+ 		r+= "<br>\n";
+ 		r+= "<table border=0 cellspacing=0 align=center>\n\t<tr><td align=center>\n";
+-		r+= "<img src=\""+idir+"/jb.png\" width="HTML_GRAPH_WQ" height="HTML_GRAPH_HQ">";
++		r+= "<img src=\""+idir+"/jb.png\" width=" HTML_GRAPH_WQ " height=" HTML_GRAPH_HQ ">";
+ 		r+= "</td></tr>\n</table><br>\n";
+ 	}
+ 
+@@ -1643,7 +1643,7 @@ QString QPxToolMW::generate_html(device *dev, QString 
+ 		r+= "\t</table>\n";
+ 		r+= "<br>\n";
+ 		r+= "<table border=0 cellspacing=0 align=center>\n\t<tr><td align=center>\n";
+-		r+= "<img src=\""+idir+"/ft.png\" width="HTML_GRAPH_WQ" height="HTML_GRAPH_HQ">";
++		r+= "<img src=\""+idir+"/ft.png\" width=" HTML_GRAPH_WQ " height=" HTML_GRAPH_HQ ">";
+ 		r+= "</td></tr></table><br>\n";
+ 	}
+ 
+@@ -1663,9 +1663,9 @@ QString QPxToolMW::generate_html(device *dev, QString 
+ 			for (int z=0; z<3; z++) 
+ 			{
+ 				r+= "<table border=0 cellspacing=0 align=center>\n\t<tr><td align=center>";
+-				r+= "<img src=\""+idir+"/ta"+QString::number(l)+"_"+QString::number(z)+"_p.png\" width="HTML_GRAPH_WQ" height="HTML_GRAPH_HQ2">";
++				r+= "<img src=\""+idir+"/ta"+QString::number(l)+"_"+QString::number(z)+"_p.png\" width=" HTML_GRAPH_WQ " height=" HTML_GRAPH_HQ2 ">";
+ 				r+= "</td></tr>\n\t<tr><td align=\"center\">";
+-				r+= "<img src=\""+idir+"/ta"+QString::number(l)+"_"+QString::number(z)+"_l.png\" width="HTML_GRAPH_WQ" height="HTML_GRAPH_HQ2">";
++				r+= "<img src=\""+idir+"/ta"+QString::number(l)+"_"+QString::number(z)+"_l.png\" width=" HTML_GRAPH_WQ " height=" HTML_GRAPH_HQ2 ">";
+ 				r+= "</td></tr>\n</table><br>\n";
+ 			}
+ 		}
+@@ -1674,7 +1674,7 @@ QString QPxToolMW::generate_html(device *dev, QString 
+ 	r+= "\t<br><br>\n";
+ 	r+= "\t\n";
+ 	r+=	"<p align=\"center\">\n";
+-	r+= "\tGenerated by QPxTool v"VERSION" (c) Gennady \"ShultZ\" Kozlov\n";
++	r+= "\tGenerated by QPxTool v" VERSION " (c) Gennady \"ShultZ\" Kozlov\n";
+ 	r+= "\t<a href=\"http://qpxtool.sourceforge.net\">http://qpxtool.sourceforge.net</a><br>\n";
+ 	r+= "</p>\n";
+ 	r+= "</body>\n</html>\n";



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201807041139.w64Bdvu0046347>