Skip to content

Commit 9608c0c

Browse files
committed
comparison always true [-Wtype-limits]
1 parent 60087be commit 9608c0c

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/express/error.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -266,7 +266,7 @@ va_dcl {
266266
vfprintf( error_file, what->message, args );
267267
fputc( '\n', error_file );
268268
ERRORoccurred = true;
269-
} else if( what->severity >= SEVERITY_WARNING ) {
269+
} else {
270270
fprintf( error_file, "WARNING: %d", what->severity );
271271
vfprintf( error_file, what->message, args );
272272
fputc( '\n', error_file );
@@ -382,7 +382,7 @@ va_dcl {
382382
*ERROR_string++ = '\n';
383383
*ERROR_string++ = '\0';
384384
ERRORoccurred = true;
385-
} else if( what->severity >= SEVERITY_WARNING ) {
385+
} else {
386386
sprintf( ERROR_string, "%s:%d: WARNING: ", sym->filename, sym->line );
387387
ERROR_string += strlen( ERROR_string );
388388
vsprintf( ERROR_string, what->message, args );
@@ -406,7 +406,7 @@ va_dcl {
406406
vfprintf( error_file, what->message, args );
407407
fprintf( error_file, "\n" );
408408
ERRORoccurred = true;
409-
} else if( what->severity >= SEVERITY_WARNING ) {
409+
} else {
410410
fprintf( error_file, "%s:%d: WARNING: ", sym->filename, sym->line );
411411
ERROR_string += strlen( ERROR_string ) + 1;
412412
vfprintf( error_file, what->message, args );

0 commit comments

Comments
 (0)