summaryrefslogtreecommitdiff
path: root/libio
diff options
context:
space:
mode:
authorlaw <law@138bc75d-0d04-0410-961f-82ee72b054a4>1997-12-11 18:44:36 +0000
committerlaw <law@138bc75d-0d04-0410-961f-82ee72b054a4>1997-12-11 18:44:36 +0000
commite3abf44b8f8e3f62d0fdedebeb12f84ebdcf6ad0 (patch)
treecbf788fd699b3c6e05a99e5c98f5b5d752f97076 /libio
parent17cb98d49acaff501462a738bdf32fb52464e257 (diff)
downloadgcc-e3abf44b8f8e3f62d0fdedebeb12f84ebdcf6ad0.tar.gz
* 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. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@17044 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'libio')
-rw-r--r--libio/tests/ChangeLog6
-rw-r--r--libio/tests/tFile.cc2
2 files changed, 7 insertions, 1 deletions
diff --git a/libio/tests/ChangeLog b/libio/tests/ChangeLog
index cd942660557..dc9a375a162 100644
--- a/libio/tests/ChangeLog
+++ b/libio/tests/ChangeLog
@@ -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
diff --git a/libio/tests/tFile.cc b/libio/tests/tFile.cc
index f5b8a6f7760..42090ff83a3 100644
--- a/libio/tests/tFile.cc
+++ b/libio/tests/tFile.cc
@@ -225,7 +225,7 @@ void t4()
tf.remove();
#else
tf.close();
- unlink(tempfile);
+ unlink((char*)tempfile);
#endif
assert(!tf.is_open());
}