Allow multiple warnings in #pragma warning enable/disable
Make it possible to specify multiple warning numbers in #pragma warning enable/disable. The values must be separated with commas (possibly with whitespace in between).
This commit is contained in:
parent
634f40953b
commit
1989a6dd37
@ -1175,12 +1175,16 @@ static int command(void)
|
|||||||
if (ok) {
|
if (ok) {
|
||||||
if (strcmp(str,"enable")==0) {
|
if (strcmp(str,"enable")==0) {
|
||||||
cell val;
|
cell val;
|
||||||
preproc_expr(&val,NULL);
|
do {
|
||||||
pc_enablewarning(val,1);
|
preproc_expr(&val,NULL);
|
||||||
|
pc_enablewarning(val,1);
|
||||||
|
} while (*lptr!='\0');
|
||||||
} else if (strcmp(str,"disable")==0) {
|
} else if (strcmp(str,"disable")==0) {
|
||||||
cell val;
|
cell val;
|
||||||
preproc_expr(&val,NULL);
|
do {
|
||||||
pc_enablewarning(val,0);
|
preproc_expr(&val,NULL);
|
||||||
|
pc_enablewarning(val,0);
|
||||||
|
} while (*lptr!='\0');
|
||||||
} else if (strcmp(str,"push")==0) {
|
} else if (strcmp(str,"push")==0) {
|
||||||
pc_pushwarnings();
|
pc_pushwarnings();
|
||||||
} else if (strcmp(str,"pop")==0) {
|
} else if (strcmp(str,"pop")==0) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user