tFile.cc (t4): Cast TMPFILE to char* in the call to unlink...
authorBrendan Kehoe <brendan@lisa.cygnus.com>
Thu, 11 Dec 1997 18:44:36 +0000 (18:44 +0000)
committerJeff Law <law@gcc.gnu.org>
Thu, 11 Dec 1997 18:44:36 +0000 (11:44 -0700)
        * tFile.cc (t4): Cast TMPFILE to char* in the call to unlink, to
        solve warning problems with vxworks headers that leave const off
        their declarations.
Brought over from devo.

From-SVN: r17044

libio/tests/ChangeLog
libio/tests/tFile.cc

index cd94266055712f20a755c75a637d33be4e57c4c5..dc9a375a16266c3ea2fc96d83db4d9ede668e608 100644 (file)
@@ -1,3 +1,9 @@
+1997-10-31  Brendan Kehoe  <brendan@lisa.cygnus.com>
+
+       * tFile.cc (t4): Cast TMPFILE to char* in the call to unlink, to
+       solve warning problems with vxworks headers that leave const off
+       their declarations.
+
 Tue May 20 17:57:31 1997  Jeffrey A Law  (law@cygnus.com)
 
        * tfformat.c (main): Only run half the testcases if SLOW_SIMULATOR
index f5b8a6f7760cf216b00be94c30c4874371cbd6a4..42090ff83a30fd15b76449300a89ff5e79eefb5d 100644 (file)
@@ -225,7 +225,7 @@ void t4()
   tf.remove();
 #else
   tf.close();
-  unlink(tempfile);
+  unlink((char*)tempfile);
 #endif
   assert(!tf.is_open());
 }