I was building VirtualT yesterday using gcc 6.3.0 (the default on the latest raspbian) and  got a couple of warnings and errors. fixed them so that VirtualT would compile cleanly. whether they are "correct" or not I don't know but everything seems ok. In case anyone or Ken are interested i've attached a patch file to this email

bst rgrds

Russell

diff -ruN VirtualT/ VirtualT-17a/
diff -ruN VirtualT/src/display.cpp VirtualT-17a/src/display.cpp
--- VirtualT/src/display.cpp    2015-04-07 16:37:50.000000000 -0400
+++ VirtualT-17a/src/display.cpp        2018-02-09 15:48:09.927270396 -0500
@@ -1200,7 +1200,7 @@
       o->labelfont(8);
       o->labelsize(18);
     }
-    { Fl_Box* o = new Fl_Box(95, 265, 195, 25, "V "VERSION);
+    { Fl_Box* o = new Fl_Box(95, 265, 195, 25, "V " VERSION);
       o->labelfont(8);
       o->labelsize(18);
     }
diff -ruN VirtualT/src/Flu_DND.cpp VirtualT-17a/src/Flu_DND.cpp
--- VirtualT/src/Flu_DND.cpp    2011-07-11 02:17:23.000000000 -0400
+++ VirtualT-17a/src/Flu_DND.cpp        2018-02-09 15:38:59.050606203 -0500
@@ -37,7 +37,7 @@
 void Flu_DND_Event :: clear()
 {
   // reset everything
-  objUnderMouse = false;
+  objUnderMouse = (void *)false;
   dragging = false;
   exit = false;
   if(_text) free(_text); _text = 0;
diff -ruN VirtualT/src/io.c VirtualT-17a/src/io.c
--- VirtualT/src/io.c   2015-02-24 19:36:00.000000000 -0500
+++ VirtualT-17a/src/io.c       2018-02-09 16:25:17.344045779 -0500
@@ -28,10 +28,7 @@
  */


-#include <time.h>
-#ifdef __APPLE__
 #include <sys/time.h>
-#endif
 #include <stdio.h>

 #include "VirtualT.h"

Reply via email to