2007-02-21 22:37 UTC+0100 Viktor Szakats (harbour.01 syenar.hu)

* harbour/include/common.ch
     + Changed HB_SYMBOL_UNUSED() to also work in codeblock.
       Thanks to Przemek.
This commit is contained in:
Viktor Szakats
2007-02-21 21:40:35 +00:00
parent 26617b2472
commit cc37512243
2 changed files with 9 additions and 3 deletions

View File

@@ -8,6 +8,11 @@
2002-12-01 13:30 UTC+0100 Foo Bar <foo.bar@foobar.org>
*/
2007-02-21 22:37 UTC+0100 Viktor Szakats (harbour.01 syenar.hu)
* harbour/include/common.ch
+ Changed HB_SYMBOL_UNUSED() to also work in codeblock.
Thanks to Przemek.
2007-02-18 12:40 UTC+0100 Przemyslaw Czerpak (druzus/at/priv.onet.pl)
* harbour/common.mak
* harbour/source/compiler/Makefile

View File

@@ -78,8 +78,9 @@
#command UPDATE <v1> IF <exp> TO <v2> => ;
IF <exp> ; <v1> := <v2> ; END
/* To suppress unused variable /w2 warnings. The code snippet will be optimized
out by the compiler, so it won't cause any overhead. */
#define HB_SYMBOL_UNUSED( symbol ) IF .F. ; symbol := symbol ; END
/* To suppress unused variable -w2 warnings. The code snippet will be
optimized out by the compiler, so it won't cause any overhead.
It can be used in codeblocks, too. Don't remove any parentheses. */
#define HB_SYMBOL_UNUSED( symbol ) iif( !((.T.)), symbol, .T. )
#endif /* HB_COMMON_CH_ */