add -Wno- arguments to the driver.

This commit is contained in:
steve 2002-04-24 02:02:31 +00:00
parent 4a7e14786c
commit 7e27217dac
2 changed files with 21 additions and 4 deletions

View File

@ -1,4 +1,4 @@
.TH iverilog 1 "$Date: 2002/04/15 00:04:23 $" Version "$Date: 2002/04/15 00:04:23 $"
.TH iverilog 1 "$Date: 2002/04/24 02:02:31 $" Version "$Date: 2002/04/24 02:02:31 $"
.SH NAME
iverilog - Icarus Verilog compiler
@ -177,7 +177,9 @@ mostly by EDIF format output.
.SH "WARNING TYPES"
These are the types of warnings that can be selected by the \fB-W\fP
switch.
switch. All the warning types (other then \fBall\fP) can also be
prefixed with \fBno-\fP to turn of that warning. This is most useful
after a \fB-Wall\fP argument to suppress isolated warning types.
.TP 8
.B all

View File

@ -16,7 +16,7 @@
* along with this program; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA
*/
#ident "$Id: main.c,v 1.35 2002/04/15 00:04:23 steve Exp $"
#ident "$Id: main.c,v 1.36 2002/04/24 02:02:31 steve Exp $"
# include "config.h"
@ -278,9 +278,21 @@ static void process_warning_switch(const char*name)
} else if (strcmp(name,"implicit") == 0) {
if (! strchr(warning_flags+2, 'i'))
strcat(warning_flags, "i");
}else if (strcmp(name,"timescale") == 0) {
} else if (strcmp(name,"timescale") == 0) {
if (! strchr(warning_flags+2, 't'))
strcat(warning_flags, "t");
} else if (strcmp(name,"no-implicit") == 0) {
char*cp = strchr(warning_flags+2, 'i');
if (cp) while (*cp) {
cp[0] = cp[1];
cp += 1;
}
} else if (strcmp(name,"no-timescale") == 0) {
char*cp = strchr(warning_flags+2, 't');
if (cp) while (*cp) {
cp[0] = cp[1];
cp += 1;
}
}
}
@ -657,6 +669,9 @@ int main(int argc, char **argv)
/*
* $Log: main.c,v $
* Revision 1.36 2002/04/24 02:02:31 steve
* add -Wno- arguments to the driver.
*
* Revision 1.35 2002/04/15 00:04:23 steve
* Timescale warnings.
*