]> git.donarmstrong.com Git - lilypond.git/blobdiff - flower/include/yaffut.hh
Issue 5167/6: Changes: show \markup xxx = ... \etc assignments
[lilypond.git] / flower / include / yaffut.hh
index cf444626d9439e4b11b6a691e70556bceb1ca5ac..cd882461f4fdcfd1b829c651763de6bf36bb22a3 100644 (file)
@@ -21,6 +21,7 @@
 #include <memory>
 #include <sstream>
 #include <stdexcept>
+#include <unistd.h>
 
 #define YAFFUT_STRINGIZE(x) YAFFUT_STRINGIZE_(x)
 #define YAFFUT_STRINGIZE_(x) #x
@@ -277,8 +278,8 @@ struct Test: public ITest, public virtual Suite
   static Registrator<Suite, Case> s_Registrator;
   Test (): Suite ()
   {
-    Registrator<Suite, Case>r = &s_Registrator;
-    r = 0;
+    Registrator<Suite, Case> *r = &s_Registrator;
+    (void)r;
   }
   template <typename E, typename T>
   void assert_throw (void (T::*mf) (), const char *at)
@@ -301,8 +302,8 @@ struct Test<Case, void>: public ITest
   static Registrator<Case, void> s_Registrator;
   Test ()
   {
-    Registrator<Case, void>r = &s_Registrator;
-    r = 0;
+    Registrator<Case, void> *r = &s_Registrator;
+    (void)r;
   }
   template <typename E, typename T>
   void assert_throw (void (T::*mf) (), const char *at)
@@ -394,7 +395,7 @@ void assert_throw (void (*pf) (), const char *at = "")
 
 #ifdef YAFFUT_MAIN
 
-#include <iostream>
+#include <sys/types.h>
 
 int main (int argc, const char *argv[])
 {