Re: sparse segfaults

Mitchell Blank Jr
2004-11-22T18:45:13Z

Linus Torvalds wrote:
> So having
>
> int max_of_something;
> #define MAX_SOMETHING (0,max_of_something)
>
> is actually a nice way to make sure nobody does anything like
>
> MAX_SOMETHING = new;

When I want to do that I just use:

#define MAX_SOMETHING (max_of_something + 0)

When gcc accepts an arbitrary algebraic expression as an lvalue I'll be
impressed :-)

-Mitch