libDtSearch: Resolve 137 -Wunused-variable warnings.
This commit is contained in:
@@ -170,8 +170,9 @@ int db_glob_init = 0;
|
||||
calls would complete before a new task is run. If this assumption is
|
||||
ever "broken" then lock_reply will need to be placed back within db_global
|
||||
again */
|
||||
|
||||
#ifndef SINGLE_USER
|
||||
static LR_LOCK lock_reply; /* This used to be in db_global */
|
||||
#endif
|
||||
|
||||
#ifdef MULTI_TASK
|
||||
DB_TASK Currtask = {POINTER_ASSIGN((TASK FAR *)&db_global), POINTER_ASSIGN((char FAR *)NULL)};
|
||||
|
||||
@@ -464,7 +464,7 @@ typedef struct {LONG FAR *ptr; LOCK_DESC} LONG_P;
|
||||
#ifndef NO_COUNTRY
|
||||
typedef struct {struct CNTRY_TBL_S FAR *ptr; LOCK_DESC} CNTRY_TBL_P;
|
||||
#endif
|
||||
static struct sk {
|
||||
struct sk {
|
||||
INT sk_fld;
|
||||
CHAR_P sk_val;
|
||||
} __SK__;
|
||||
|
||||
@@ -61,7 +61,9 @@ TASK_DECL
|
||||
{
|
||||
register int ft_lc; /* loop control */
|
||||
register FILE_ENTRY FAR *file_ptr;
|
||||
#ifndef NO_TRANS
|
||||
int ovfl_save;
|
||||
#endif
|
||||
|
||||
DB_ENTER(NO_DB_ID TASK_ID LOCK_SET(LOCK_ALL));
|
||||
|
||||
|
||||
@@ -598,7 +598,9 @@ FILE_NO to_file; /* ..to (not thru) file "to_file" */
|
||||
PAGE_ENTRY FAR *pg_ptr;
|
||||
PGZERO FAR *pgzero_ptr;
|
||||
FILE_ENTRY FAR *file_ptr;
|
||||
#ifndef SINGLE_USER
|
||||
int FAR *appl_ptr, FAR *excl_ptr;
|
||||
#endif
|
||||
|
||||
#ifndef SINGLE_USER
|
||||
/*
|
||||
@@ -705,7 +707,9 @@ FILE_NO to_file; /* ..to (not thru) file "to_file" */
|
||||
int dio_flush()
|
||||
{
|
||||
register int pgt_lc; /* loop control */
|
||||
#ifndef NO_TRANS
|
||||
int fno;
|
||||
#endif
|
||||
PAGE_ENTRY FAR *pg_ptr;
|
||||
LOOKUP_ENTRY FAR *lu_ptr;
|
||||
|
||||
|
||||
@@ -51,9 +51,6 @@
|
||||
#include "vista.h"
|
||||
#include "dbtype.h"
|
||||
|
||||
static DB_ADDR_P Cb = POINTER_INIT();
|
||||
#define cb (Cb.ptr)
|
||||
|
||||
|
||||
/* Read currency table
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user