From 1518d1bb84b42167fce15b1bc7055168dae189e8 Mon Sep 17 00:00:00 2001 From: Przemyslaw Czerpak Date: Fri, 1 Feb 2013 14:43:27 +0000 Subject: [PATCH] 2013-02-01 15:43 UTC+0100 Przemyslaw Czerpak (druzus/at/poczta.onet.pl) * harbour/src/rtl/run.c * restored dummy if() to pacify "unused result" warning - some compilers ignores classic method with ( void ) prefixing. --- harbour/ChangeLog.txt | 5 +++++ harbour/src/rtl/run.c | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/harbour/ChangeLog.txt b/harbour/ChangeLog.txt index c25c3bebd5..dc6812fa0f 100644 --- a/harbour/ChangeLog.txt +++ b/harbour/ChangeLog.txt @@ -10,6 +10,11 @@ * Change, ! Fix, % Optimization, + Addition, - Removal, ; Comment */ +2013-02-01 15:43 UTC+0100 Przemyslaw Czerpak (druzus/at/poczta.onet.pl) + * harbour/src/rtl/run.c + * restored dummy if() to pacify "unused result" warning - some compilers + ignores classic method with ( void ) prefixing. + 2013-02-01 13:39 UTC+0100 Viktor Szakats (harbour syenar.net) * include/harbour.hbx + added/cased recently added RTL functions diff --git a/harbour/src/rtl/run.c b/harbour/src/rtl/run.c index fb9f1e1862..50b1d7e945 100644 --- a/harbour/src/rtl/run.c +++ b/harbour/src/rtl/run.c @@ -81,7 +81,7 @@ HB_FUNC( __RUN ) #else char * pszFree = NULL; - ( void ) system( hb_osEncodeCP( pszCommand, &pszFree, NULL ) ); + if( system( hb_osEncodeCP( pszCommand, &pszFree, NULL ) ) != 0 ) {} if( pszFree ) hb_xfree( pszFree );