2001-09-07 <johan@FRIJA>
+ * src/SDCCicode.c (newiCodeCondition): fixed bug #456235 (1.77)
+
* src/SDCCglue.c (emitRegularMap): only delete a symbol when it is a symbol
2001-09-06 <johan@FRIJA>
{
iCode *ic;
+ if (IS_VOID(OP_SYMBOL(condition)->type)) {
+ werror(E_VOID_VALUE_USED);
+ }
+
ic = newiCode (IFX, NULL, NULL);
IC_COND (ic) = condition;
IC_TRUE (ic) = trueLabel;
{ E_CANNOT_USE_GENERIC_POINTER, ERROR_LEVEL_ERROR,
"cannot use generic pointer %s to initialize %s" },
{ W_EXCESS_SHORT_OPTIONS, ERROR_LEVEL_WARNING,
- "Only one short option can be specified at a time. Rest of %s ignored." }
+ "Only one short option can be specified at a time. Rest of %s ignored." },
+{ E_VOID_VALUE_USED, ERROR_LEVEL_ERROR,
+ "void value not ignored as it ought to be" },
};
/*
#define W_STRAY_BACKSLASH 149
#define W_NEWLINE_IN_STRING 150
#define E_CANNOT_USE_GENERIC_POINTER 151
-#define W_EXCESS_SHORT_OPTIONS 152
+#define W_EXCESS_SHORT_OPTIONS 152
+#define E_VOID_VALUE_USED 153
/** Describes the maximum error level that will be logged. Any level
* includes all of the levels listed after it.