Jens Staal
2014-11-07 09:30:32 UTC
As I try to compile open source programs I encounter this issue from time to
time
Often in expressions like this one:
char BUG_header[sizeof(header) == 8 ? 1 : -1];
My usual "solution" is to temporarily wrap it in an #if defined __WATCOMC__
and change the "0" or "-1" to "1"
I have a strong feeling that this is a BAD THING and that there must be a
more appropriate way of handling these issues. Usually I have very little
understanding of the code that I am trying to compile.
Is there a flag to pass to owcc to make it accept 0 or negative values?
time
Often in expressions like this one:
char BUG_header[sizeof(header) == 8 ? 1 : -1];
My usual "solution" is to temporarily wrap it in an #if defined __WATCOMC__
and change the "0" or "-1" to "1"
I have a strong feeling that this is a BAD THING and that there must be a
more appropriate way of handling these issues. Usually I have very little
understanding of the code that I am trying to compile.
Is there a flag to pass to owcc to make it accept 0 or negative values?