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:
@@ -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
|
||||
|
||||
@@ -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_ */
|
||||
|
||||
Reference in New Issue
Block a user