From: Brendan Kehoe Date: Thu, 11 Dec 1997 18:44:36 +0000 (+0000) Subject: tFile.cc (t4): Cast TMPFILE to char* in the call to unlink... X-Git-Tag: releases/libf2c-0.5.21~394 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=dd6f85cd5ee5c969944db83475b46633dbe23dfc;p=thirdparty%2Fgcc.git tFile.cc (t4): Cast TMPFILE to char* in the call to unlink... * 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 --- diff --git a/libio/tests/ChangeLog b/libio/tests/ChangeLog index cd9426605571..dc9a375a1626 100644 --- a/libio/tests/ChangeLog +++ b/libio/tests/ChangeLog @@ -1,3 +1,9 @@ +1997-10-31 Brendan Kehoe + + * 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 f5b8a6f7760c..42090ff83a30 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()); }