V10: Fix some compile warnings
This commit is contained in:
parent
90cf0e5794
commit
9b34a96cb9
|
|
@ -171,13 +171,6 @@ extern "C" unsigned ivl_expr_lineno(ivl_expr_t net)
|
||||||
return net->lineno;
|
return net->lineno;
|
||||||
}
|
}
|
||||||
|
|
||||||
inline static const char *basename(ivl_scope_t scope, const char *inst)
|
|
||||||
{
|
|
||||||
inst += strlen(ivl_scope_name(scope));
|
|
||||||
assert(*inst == '.');
|
|
||||||
return inst+1;
|
|
||||||
}
|
|
||||||
|
|
||||||
extern "C" ivl_variable_type_t ivl_const_type(ivl_net_const_t net)
|
extern "C" ivl_variable_type_t ivl_const_type(ivl_net_const_t net)
|
||||||
{
|
{
|
||||||
assert(net);
|
assert(net);
|
||||||
|
|
|
||||||
7
t-dll.cc
7
t-dll.cc
|
|
@ -151,13 +151,6 @@ void ivl_net_const_s::operator delete(void*, size_t)
|
||||||
|
|
||||||
static StringHeapLex net_const_strings;
|
static StringHeapLex net_const_strings;
|
||||||
|
|
||||||
inline static const char *basename(ivl_scope_t scope, const char *inst)
|
|
||||||
{
|
|
||||||
inst += strlen(ivl_scope_name(scope));
|
|
||||||
assert(*inst == '.');
|
|
||||||
return inst+1;
|
|
||||||
}
|
|
||||||
|
|
||||||
static perm_string make_scope_name(const hname_t&name)
|
static perm_string make_scope_name(const hname_t&name)
|
||||||
{
|
{
|
||||||
if (! name.has_numbers())
|
if (! name.has_numbers())
|
||||||
|
|
|
||||||
|
|
@ -56,7 +56,7 @@ O = sys_table.o sys_convert.o sys_countdrivers.o sys_darray.o sys_deposit.o sys_
|
||||||
sys_random.o sys_random_mti.o sys_readmem.o sys_readmem_lex.o sys_scanf.o \
|
sys_random.o sys_random_mti.o sys_readmem.o sys_readmem_lex.o sys_scanf.o \
|
||||||
sys_sdf.o sys_time.o sys_vcd.o sys_vcdoff.o vcd_priv.o mt19937int.o \
|
sys_sdf.o sys_time.o sys_vcd.o sys_vcdoff.o vcd_priv.o mt19937int.o \
|
||||||
sys_priv.o sdf_parse.o sdf_lexor.o stringheap.o vams_simparam.o \
|
sys_priv.o sdf_parse.o sdf_lexor.o stringheap.o vams_simparam.o \
|
||||||
table_mod.o table_mod_lexor.o table_mod_parse.o
|
table_mod.o table_mod_parse.o table_mod_lexor.o
|
||||||
OPP = vcd_priv2.o
|
OPP = vcd_priv2.o
|
||||||
|
|
||||||
ifeq (@HAVE_LIBZ@,yes)
|
ifeq (@HAVE_LIBZ@,yes)
|
||||||
|
|
|
||||||
|
|
@ -20,6 +20,7 @@
|
||||||
/* round() is ISO C99 from math.h. This define should enable it. */
|
/* round() is ISO C99 from math.h. This define should enable it. */
|
||||||
# define _ISOC99_SOURCE 1
|
# define _ISOC99_SOURCE 1
|
||||||
# define _SVID_SOURCE 1
|
# define _SVID_SOURCE 1
|
||||||
|
# define _DEFAULT_SOURCE 1
|
||||||
|
|
||||||
# include "sys_priv.h"
|
# include "sys_priv.h"
|
||||||
# include <ctype.h>
|
# include <ctype.h>
|
||||||
|
|
|
||||||
|
|
@ -1,7 +1,7 @@
|
||||||
|
|
||||||
%{
|
%{
|
||||||
/*
|
/*
|
||||||
* Copyright (C) 2011-2014 Cary R. (cygcary@yahoo.com)
|
* Copyright (C) 2011-2015 Cary R. (cygcary@yahoo.com)
|
||||||
*
|
*
|
||||||
* This program is free software; you can redistribute it and/or modify
|
* This program is free software; you can redistribute it and/or modify
|
||||||
* it under the terms of the GNU General Public License as published by
|
* it under the terms of the GNU General Public License as published by
|
||||||
|
|
@ -228,7 +228,7 @@ void yyerror(const char *fmt, ...)
|
||||||
{
|
{
|
||||||
va_list ap;
|
va_list ap;
|
||||||
va_start(ap, fmt);
|
va_start(ap, fmt);
|
||||||
fprintf(stderr, "%s:%u: TABLE ERROR: ", in_file_name,
|
fprintf(stderr, "%s:%d: TABLE ERROR: ", in_file_name,
|
||||||
yylloc.first_line-1);
|
yylloc.first_line-1);
|
||||||
vfprintf(stderr, fmt, ap);
|
vfprintf(stderr, fmt, ap);
|
||||||
va_end(ap);
|
va_end(ap);
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue