mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-22 10:00:33 +00:00
dt2dv.c: avoid compiler warnings
This commit is contained in:
parent
9f92fc92bd
commit
94647a6f20
7
3rdparty/dtl/dt2dv.c
vendored
7
3rdparty/dtl/dt2dv.c
vendored
@ -327,6 +327,7 @@ main
|
|||||||
#endif
|
#endif
|
||||||
{
|
{
|
||||||
Void (*handler) ARGS((int)); /* Previous signal handler */
|
Void (*handler) ARGS((int)); /* Previous signal handler */
|
||||||
|
(void)handler;// avoid compiler warning [-Wunused-but-set-variable]
|
||||||
int i;
|
int i;
|
||||||
|
|
||||||
progname = argv[0]; /* name of this program */
|
progname = argv[0]; /* name of this program */
|
||||||
@ -390,6 +391,7 @@ mem_viol
|
|||||||
#endif
|
#endif
|
||||||
{
|
{
|
||||||
Void (* handler) ARGS((int));
|
Void (* handler) ARGS((int));
|
||||||
|
(void)handler;// avoid compiler warning [-Wunused-but-set-variable]
|
||||||
handler = (Void (*) ARGS((int))) signal (SIGSEGV, mem_viol);
|
handler = (Void (*) ARGS((int))) signal (SIGSEGV, mem_viol);
|
||||||
if (sig != SIGSEGV)
|
if (sig != SIGSEGV)
|
||||||
{
|
{
|
||||||
@ -659,6 +661,7 @@ dt2dv
|
|||||||
int nprefixes = 0; /* number of prefixes in cmd_prefixes[] list. */
|
int nprefixes = 0; /* number of prefixes in cmd_prefixes[] list. */
|
||||||
static Token dtl_cmd = ""; /* DTL command name */
|
static Token dtl_cmd = ""; /* DTL command name */
|
||||||
COUNT nread = 0; /* number of bytes read by a function from dtl file. */
|
COUNT nread = 0; /* number of bytes read by a function from dtl file. */
|
||||||
|
(void)nread;// avoid compiler warning [-Wunused-but-set-variable]
|
||||||
|
|
||||||
nprefixes = sizeof (cmd_prefixes) / sizeof (CmdPrefix);
|
nprefixes = sizeof (cmd_prefixes) / sizeof (CmdPrefix);
|
||||||
|
|
||||||
@ -1649,6 +1652,7 @@ xfer_hex
|
|||||||
{
|
{
|
||||||
U4 unum = 0; /* at most this space needed */
|
U4 unum = 0; /* at most this space needed */
|
||||||
COUNT nread = 0; /* number of DTL bytes read by read_token */
|
COUNT nread = 0; /* number of DTL bytes read by read_token */
|
||||||
|
(void)nread;// avoid compiler warning [-Wunused-but-set-variable]
|
||||||
int nconv = 0; /* number of arguments converted by sscanf */
|
int nconv = 0; /* number of arguments converted by sscanf */
|
||||||
static Token token = ""; /* DTL token */
|
static Token token = ""; /* DTL token */
|
||||||
|
|
||||||
@ -1695,6 +1699,7 @@ xfer_oct
|
|||||||
{
|
{
|
||||||
U4 unum = 0; /* at most this space needed */
|
U4 unum = 0; /* at most this space needed */
|
||||||
COUNT nread = 0; /* number of DTL bytes read by read_token */
|
COUNT nread = 0; /* number of DTL bytes read by read_token */
|
||||||
|
(void)nread;// avoid compiler warning [-Wunused-but-set-variable]
|
||||||
int nconv = 0; /* number of arguments converted by sscanf */
|
int nconv = 0; /* number of arguments converted by sscanf */
|
||||||
static Token token = ""; /* DTL token */
|
static Token token = ""; /* DTL token */
|
||||||
|
|
||||||
@ -1785,6 +1790,7 @@ get_unsigned
|
|||||||
{
|
{
|
||||||
U4 unum = 0; /* at most this space needed */
|
U4 unum = 0; /* at most this space needed */
|
||||||
COUNT nread = 0; /* number of DTL bytes read by read_token */
|
COUNT nread = 0; /* number of DTL bytes read by read_token */
|
||||||
|
(void)nread;// avoid compiler warning [-Wunused-but-set-variable]
|
||||||
int nconv = 0; /* number of arguments converted by sscanf */
|
int nconv = 0; /* number of arguments converted by sscanf */
|
||||||
static Token token = ""; /* DTL token */
|
static Token token = ""; /* DTL token */
|
||||||
|
|
||||||
@ -1818,6 +1824,7 @@ get_signed
|
|||||||
{
|
{
|
||||||
S4 snum = 0;
|
S4 snum = 0;
|
||||||
COUNT nread = 0; /* number of DTL bytes read by read_token */
|
COUNT nread = 0; /* number of DTL bytes read by read_token */
|
||||||
|
(void)nread;// avoid compiler warning [-Wunused-but-set-variable]
|
||||||
int nconv = 0; /* number of sscanf arguments converted and assigned */
|
int nconv = 0; /* number of sscanf arguments converted and assigned */
|
||||||
static Token token = "";
|
static Token token = "";
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user