Re: empty function macros

2011-02-01 Thread Roman Divacky
On Mon, Jan 31, 2011 at 09:51:58AM +, Alexander Best wrote: On Mon Jan 31 11, Roman Divacky wrote: no problem with this with clang :) hmso compiling the following code int main(int argc, char **argv) { if (12) ; } with clang -Werror code.c -o code works for you?

Re: empty function macros

2011-02-01 Thread Alexander Best
On Tue Feb 1 11, Roman Divacky wrote: On Mon, Jan 31, 2011 at 09:51:58AM +, Alexander Best wrote: On Mon Jan 31 11, Roman Divacky wrote: no problem with this with clang :) hmso compiling the following code int main(int argc, char **argv) { if (12) ; }

Re: empty function macros

2011-02-01 Thread Roman Divacky
On Tue, Feb 01, 2011 at 11:25:01AM +, Alexander Best wrote: On Tue Feb 1 11, Roman Divacky wrote: On Mon, Jan 31, 2011 at 09:51:58AM +, Alexander Best wrote: On Mon Jan 31 11, Roman Divacky wrote: no problem with this with clang :) hmso compiling the following

Re: empty function macros

2011-01-31 Thread Roman Divacky
no problem with this with clang :) On Sun, Jan 30, 2011 at 05:29:41PM +, Alexander Best wrote: hi there, i noticed freebsd has a few of the following macros: #define FUNC(sb) when you do something like if (cond) FUNC(i) the compiler complains about an if statement with an

Re: empty function macros

2011-01-31 Thread Julian Elischer
On 1/30/11 11:54 PM, Roman Divacky wrote: no problem with this with clang :) On Sun, Jan 30, 2011 at 05:29:41PM +, Alexander Best wrote: hi there, i noticed freebsd has a few of the following macros: #define FUNC(sb) when you do something like if (cond) FUNC(i) you missed an

Re: empty function macros

2011-01-31 Thread Alexander Best
On Mon Jan 31 11, Julian Elischer wrote: On 1/30/11 11:54 PM, Roman Divacky wrote: no problem with this with clang :) On Sun, Jan 30, 2011 at 05:29:41PM +, Alexander Best wrote: hi there, i noticed freebsd has a few of the following macros: #define FUNC(sb) when you do something

Re: empty function macros

2011-01-31 Thread Alexander Best
On Mon Jan 31 11, Roman Divacky wrote: no problem with this with clang :) hmso compiling the following code int main(int argc, char **argv) { if (12) ; } with clang -Werror code.c -o code works for you? cheers. alex On Sun, Jan 30, 2011 at 05:29:41PM +, Alexander Best

empty function macros

2011-01-30 Thread Alexander Best
hi there, i noticed freebsd has a few of the following macros: #define FUNC(sb) when you do something like if (cond) FUNC(i) the compiler complains about an if statement with an empty body. any sensible way of dealing with this issue? i saw some reiserfs code which does the following to

Re: empty function macros

2011-01-30 Thread Gary Jennejohn
On Sun, 30 Jan 2011 17:29:41 + Alexander Best arun...@freebsd.org wrote: hi there, i noticed freebsd has a few of the following macros: #define FUNC(sb) when you do something like if (cond) FUNC(i) the compiler complains about an if statement with an empty body. any

Re: empty function macros

2011-01-30 Thread Alexander Best
On Sun Jan 30 11, Gary Jennejohn wrote: On Sun, 30 Jan 2011 17:29:41 + Alexander Best arun...@freebsd.org wrote: hi there, i noticed freebsd has a few of the following macros: #define FUNC(sb) when you do something like if (cond) FUNC(i) the compiler