* Get rid of many gcc warnings.
This commit is contained in:
parent
18fc41b7c7
commit
245427b08e
11 changed files with 20 additions and 15 deletions
|
@ -2350,12 +2350,10 @@ fflush(stderr);
|
|||
|
||||
while (nReturn == SQL_SUCCESS || nReturn == SQL_SUCCESS_WITH_INFO)
|
||||
{
|
||||
|
||||
|
||||
tablenum = tablenum + 1;
|
||||
curtable->tablename = malloc(sizeof(szTableName));
|
||||
curtable->next = malloc(sizeof(ODBC_TABLES));
|
||||
strncpy(curtable->tablename, (char *)szTableName, sizeof(szTableName));
|
||||
strcpy(curtable->tablename, (char *)szTableName);
|
||||
curtable = (ODBC_TABLES *) curtable->next;
|
||||
szTableName[0] = '\0';
|
||||
szTableType[0] = '\0';
|
||||
|
|
|
@ -42,6 +42,14 @@
|
|||
#undef PACKAGE_URL
|
||||
#endif
|
||||
|
||||
#ifdef Max
|
||||
#undef Max
|
||||
#endif
|
||||
|
||||
#ifdef Min
|
||||
#undef Min
|
||||
#endif
|
||||
|
||||
#include "gb.db.proto.h"
|
||||
#include "main.h"
|
||||
|
||||
|
|
|
@ -107,7 +107,7 @@ bool MAIN_rtl = false;
|
|||
extern "C"
|
||||
{
|
||||
|
||||
GB_INTERFACE GB EXPORT;
|
||||
const GB_INTERFACE *GB_PTR EXPORT;
|
||||
IMAGE_INTERFACE IMAGE EXPORT;
|
||||
GEOM_INTERFACE GEOM EXPORT;
|
||||
|
||||
|
|
|
@ -41,7 +41,7 @@ void CKEY_clear(int valid)
|
|||
if (CKEY_info.valid == 0)
|
||||
{
|
||||
GB.FreeString(&CKEY_info.text);
|
||||
CLEAR(&CKEY_info);
|
||||
CKEY_info = { 0 };
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -113,7 +113,6 @@
|
|||
/*#define DEBUG*/
|
||||
|
||||
extern "C" {
|
||||
|
||||
const GB_INTERFACE *GB_PTR EXPORT;
|
||||
IMAGE_INTERFACE IMAGE EXPORT;
|
||||
GEOM_INTERFACE GEOM EXPORT;
|
||||
|
|
|
@ -825,10 +825,10 @@ bool TRANS_is_end_function(bool is_proc, PATTERN *look)
|
|||
}
|
||||
|
||||
|
||||
char *TRANS_get_num_desc(int num)
|
||||
char *TRANS_get_num_desc(ushort num)
|
||||
{
|
||||
static const char *num_desc[3] = { "first", "second", "third" };
|
||||
static char desc[6];
|
||||
static char desc[8];
|
||||
|
||||
if (num < 1)
|
||||
return NULL;
|
||||
|
|
|
@ -138,7 +138,7 @@ void TRANS_want(int reserved, char *msg);
|
|||
void TRANS_want_newline(void);
|
||||
//int TRANS_get_class(PATTERN pattern);
|
||||
bool TRANS_is_end_function(bool is_proc, PATTERN *look);
|
||||
char *TRANS_get_num_desc(int num);
|
||||
char *TRANS_get_num_desc(ushort num);
|
||||
|
||||
#define TRANS_is(_reserved) (PATTERN_is(*JOB->current, (_reserved)) ? JOB->current++, TRUE : FALSE)
|
||||
#define TRANS_ignore(_reserved) (void)TRANS_is(_reserved)
|
||||
|
|
|
@ -70,8 +70,8 @@
|
|||
static char _root[PATH_MAX + 1] = { 0 };
|
||||
static char _lib_path[PATH_MAX + 1];
|
||||
static char _info_path[PATH_MAX + 1];
|
||||
static char _buffer[PATH_MAX + 1];
|
||||
static char _env[PATH_MAX + 16];
|
||||
static char _buffer[PATH_MAX + 16];
|
||||
static char _env[PATH_MAX + 32];
|
||||
|
||||
static FILE *out_info;
|
||||
static FILE *out_list;
|
||||
|
|
|
@ -1,3 +1,3 @@
|
|||
[Component]
|
||||
Key=gb.db
|
||||
Version=3.11.90
|
||||
Version=3.12.0
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
# Gambas Project File 3.0
|
||||
Title=gb.db
|
||||
Startup=Main
|
||||
Version=3.11.90
|
||||
Version=3.12.0
|
||||
VersionFile=1
|
||||
Component=gb.db
|
||||
TabSize=2
|
||||
|
|
|
@ -158,11 +158,11 @@ typedef
|
|||
#endif
|
||||
|
||||
#ifndef PATH_MAX
|
||||
#define PATH_MAX 4096
|
||||
#define PATH_MAX 4095
|
||||
#endif
|
||||
|
||||
#ifndef MAXPATHLEN
|
||||
#define MAXPATHLEN 4096
|
||||
#define MAXPATHLEN 4095
|
||||
#endif
|
||||
|
||||
#define CLEAR(s) (memset(s, 0, sizeof(*s)))
|
||||
|
|
Loading…
Reference in a new issue