mirror of
https://github.com/steveicarus/iverilog.git
synced 2026-08-28 16:53:45 +02:00
Fix some weird lint found by clang
Small stuff, no behavior change expected.
This commit is contained in:
+1
-1
@@ -71,7 +71,7 @@ const char HELP[] =
|
||||
#endif
|
||||
#include <fcntl.h>
|
||||
|
||||
#if HAVE_GETOPT_H
|
||||
#ifdef HAVE_GETOPT_H
|
||||
#include <getopt.h>
|
||||
#endif
|
||||
|
||||
|
||||
+1
-1
@@ -1648,7 +1648,7 @@ extern "C" const char* ivl_nexus_name(ivl_nexus_t net)
|
||||
assert(net);
|
||||
if (net->name_ == 0) {
|
||||
char tmp[2 * sizeof(net) + 5];
|
||||
snprintf(tmp, sizeof tmp, "n%p", net);
|
||||
snprintf(tmp, sizeof tmp, "n%p", (void *)net);
|
||||
net->name_ = api_strings.add(tmp);
|
||||
}
|
||||
return net->name_;
|
||||
|
||||
Reference in New Issue
Block a user