Fix some weird lint found by clang
Small stuff, no behavior change expected.
This commit is contained in:
parent
12379ed26a
commit
35a8485a44
|
|
@ -71,7 +71,7 @@ const char HELP[] =
|
||||||
#endif
|
#endif
|
||||||
#include <fcntl.h>
|
#include <fcntl.h>
|
||||||
|
|
||||||
#if HAVE_GETOPT_H
|
#ifdef HAVE_GETOPT_H
|
||||||
#include <getopt.h>
|
#include <getopt.h>
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1648,7 +1648,7 @@ extern "C" const char* ivl_nexus_name(ivl_nexus_t net)
|
||||||
assert(net);
|
assert(net);
|
||||||
if (net->name_ == 0) {
|
if (net->name_ == 0) {
|
||||||
char tmp[2 * sizeof(net) + 5];
|
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);
|
net->name_ = api_strings.add(tmp);
|
||||||
}
|
}
|
||||||
return net->name_;
|
return net->name_;
|
||||||
|
|
|
||||||
2
t-dll.h
2
t-dll.h
|
|
@ -625,7 +625,7 @@ struct ivl_parameter_s {
|
||||||
*/
|
*/
|
||||||
struct ivl_process_s {
|
struct ivl_process_s {
|
||||||
ivl_process_type_t type_ : 2;
|
ivl_process_type_t type_ : 2;
|
||||||
int analog_flag : 1;
|
unsigned int analog_flag : 1;
|
||||||
ivl_scope_t scope_;
|
ivl_scope_t scope_;
|
||||||
ivl_statement_t stmt_;
|
ivl_statement_t stmt_;
|
||||||
perm_string file;
|
perm_string file;
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue