Fix a few cppcheck issues and update some suppressions

This commit is contained in:
Cary R 2012-01-05 18:52:36 -08:00
parent fc7e7640ed
commit 62b7c52329
3 changed files with 4 additions and 6 deletions

View File

@ -1,3 +1,3 @@
// These are correct and are used to find the base (zero) pin.
thisSubtraction:netlist.h:4168
thisSubtraction:netlist.h:4177
thisSubtraction:netlist.h:4169
thisSubtraction:netlist.h:4178

View File

@ -58,7 +58,7 @@ distclean: clean
rm -f Makefile config.log
rm -f stamp-pcb_config-h pcb_config.h
cppcheck: $(O:.o=.c)
cppcheck: $(O:.o=.cc)
cppcheck --enable=all -f $(INCLUDE_PATH) $^
Makefile: $(srcdir)/Makefile.in ../config.status

View File

@ -1,5 +1,5 @@
/*
* Copyright (c) 2001-2011 Stephen Williams (steve@icarus.com)
* Copyright (c) 2001-2012 Stephen Williams (steve@icarus.com)
*
* This source code is free software; you can redistribute it
* and/or modify it in source code form under the terms of the GNU
@ -3574,8 +3574,6 @@ bool of_PAD(vthread_t thr, vvp_code_t cp)
vvp_vector4_t tmp (cp->number, pad_bit);
thr->bits4.set_vec(cp->bit_idx[0], tmp);
return true;
return true;
}
/*