File tree Expand file tree Collapse file tree 1 file changed +4
-10
lines changed Expand file tree Collapse file tree 1 file changed +4
-10
lines changed Original file line number Diff line number Diff line change @@ -1305,29 +1305,23 @@ static int command(void)
1305
1305
} else if (strcmp (str ,"warning" )== 0 ) {
1306
1306
int ok = lex (& val ,& str )== tSYMBOL ;
1307
1307
if (ok ) {
1308
- if (strcmp (str ,"enable" )== 0 ) {
1308
+ if (strcmp (str ,"enable" )== 0 || strcmp ( str , "disable" ) == 0 ) {
1309
1309
cell val ;
1310
1310
do {
1311
1311
preproc_expr (& val ,NULL );
1312
- pc_enablewarning (val ,1 );
1313
- } while (* lptr != '\0' );
1314
- } else if (strcmp (str ,"disable" )== 0 ) {
1315
- cell val ;
1316
- do {
1317
- preproc_expr (& val ,NULL );
1318
- pc_enablewarning (val ,0 );
1312
+ pc_enablewarning (val ,(str [0 ]== 'e' ) ? 1 : 0 );
1319
1313
} while (* lptr != '\0' );
1320
1314
} else if (strcmp (str ,"push" )== 0 ) {
1321
1315
pc_pushwarnings ();
1322
1316
} else if (strcmp (str ,"pop" )== 0 ) {
1323
1317
pc_popwarnings ();
1324
1318
} else {
1325
1319
ok = FALSE;
1326
- }
1320
+ } /* if */
1327
1321
}
1328
1322
if (!ok ) {
1329
1323
error (207 ); /* unknown #pragma */
1330
- }
1324
+ } /* if */
1331
1325
} else if (strcmp (str ,"compat" )== 0 ) {
1332
1326
cell val ;
1333
1327
symbol * sym ;
You can’t perform that action at this time.
0 commit comments