Skip to content

Commit 3b20930

Browse files
committed
More cppcheck cleanup
1 parent 87d9d0a commit 3b20930

File tree

3 files changed

+60
-4
lines changed

3 files changed

+60
-4
lines changed

cppcheck.sup

Lines changed: 55 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -636,3 +636,58 @@ unusedFunction:t-dll-api.cc:1007
636636
unusedFunction:t-dll-api.cc:1016
637637
// ivl_udp_sequ()
638638
unusedFunction:t-dll-api.cc:980
639+
640+
// Unused routines
641+
// has_compat_attributes()
642+
unusedFunction:Attrib.cc:72
643+
// bl_type()
644+
unusedFunction:Statement.h:186
645+
// chain_args()
646+
unusedFunction:Statement.h:332
647+
// gn_modules_nest()
648+
unusedFunction:compiler.h:228
649+
// driven_mask()
650+
unusedFunction:link_const.cc:275
651+
// find_root_scope()
652+
unusedFunction:net_design.cc:121
653+
// assign_lval()
654+
unusedFunction:net_link.cc:282
655+
// intersect()
656+
unusedFunction:net_link.cc:689
657+
// get_def_fileline()
658+
unusedFunction:net_scope.cc:201
659+
// get_module_port_info()
660+
unusedFunction:net_scope.cc:591
661+
// find_link_signal()
662+
unusedFunction:netlist.cc:111
663+
// find_link()
664+
unusedFunction:netlist.cc:297
665+
// set_module_port_index()
666+
unusedFunction:netlist.cc:649
667+
// width_a()
668+
unusedFunction:netlist.cc:1674
669+
// width_b()
670+
unusedFunction:netlist.cc:1679
671+
// result_sig()
672+
unusedFunction:netlist.cc:2180
673+
// test_protected()
674+
unusedFunction:property_qual.h:50
675+
// test_rand()
676+
unusedFunction:property_qual.h:52
677+
// test_randc()
678+
unusedFunction:property_qual.h:53
679+
// sub_off_from_expr_()
680+
unusedFunction:t-dll-expr.cc:55
681+
// mul_expr_by_const_()
682+
unusedFunction:t-dll-expr.cc:91
683+
// net_assign()
684+
unusedFunction:t-dll.cc:2368
685+
// is_before()
686+
unusedFunction:verinum.cc:592
687+
688+
// Errors in the generated yacc and lex files
689+
cstyleCast:<stdout>
690+
syntaxError:<stdout>
691+
unusedFunction:<stdout>
692+
duplicateBreak:lexor.lex
693+
syntaxError:parse.cc

dosify.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (c) 2001-2009 Stephen Williams ([email protected])
2+
* Copyright (c) 2001-2025 Stephen Williams ([email protected])
33
*
44
* This source code is free software; you can redistribute it
55
* and/or modify it in source code form under the terms of the GNU
@@ -28,7 +28,7 @@
2828

2929
# include <stdio.h>
3030

31-
int main(int argc, char*argv[])
31+
int main(int argc, const char*argv[])
3232
{
3333
FILE*ifile;
3434
FILE*ofile;

ivl_alloc.h

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@
2828
# include <string.h>
2929
#endif
3030

31-
#if defined(__GNUC__)
31+
#if !defined(_MSC_VER)
3232
/*
3333
* Define a safer version of strdup().
3434
*/
@@ -101,6 +101,7 @@
101101
} \
102102
__ivl_rtn; \
103103
})
104-
#endif
104+
105+
#endif // !defined(_MSC_VER)
105106

106107
#endif /* IVL_ivl_alloc_H */

0 commit comments

Comments
 (0)