Warning suppression bug fix from Benjamin Franksen.

This commit is contained in:
Andrew Johnson
2007-02-28 16:05:18 +00:00
parent 5568dd3dc3
commit 71e01ae55d

View File

@@ -765,10 +765,12 @@ static void trans( MAC_HANDLE *handle, MAC_ENTRY *entry, long level,
/* if reference is recursive, flag an error and insert $(name) */
if ( entry2->visited ) {
entry->error = TRUE;
errlogPrintf( "macLib: %s %s is recursive (expanding %s %s)\n",
entry->type, entry->name,
entry2->type, entry2->name );
if ( (handle->flags & FLAG_SUPPRESS_WARNINGS) == 0 ) {
entry->error = TRUE;
errlogPrintf( "macLib: %s %s is recursive (expanding %s %s)\n",
entry->type, entry->name,
entry2->type, entry2->name );
}
if ( v < valend ) *v++ = '$';
if ( v < valend ) *v++ = '(';
cpy2val( name2, &v, valend );