diff options
Diffstat (limited to 'src/interfaces/ecpg')
-rw-r--r-- | src/interfaces/ecpg/compatlib/informix.c | 1 | ||||
-rw-r--r-- | src/interfaces/ecpg/ecpglib/typename.c | 2 | ||||
-rw-r--r-- | src/interfaces/ecpg/pgtypeslib/datetime.c | 1 | ||||
-rw-r--r-- | src/interfaces/ecpg/pgtypeslib/interval.c | 1 | ||||
-rw-r--r-- | src/interfaces/ecpg/pgtypeslib/numeric.c | 1 | ||||
-rw-r--r-- | src/interfaces/ecpg/pgtypeslib/timestamp.c | 1 | ||||
-rw-r--r-- | src/interfaces/ecpg/preproc/type.c | 4 |
7 files changed, 3 insertions, 8 deletions
diff --git a/src/interfaces/ecpg/compatlib/informix.c b/src/interfaces/ecpg/compatlib/informix.c index 3b30864866b..d6de3eac997 100644 --- a/src/interfaces/ecpg/compatlib/informix.c +++ b/src/interfaces/ecpg/compatlib/informix.c @@ -311,7 +311,6 @@ deccvlong(long lng, decimal *np) int decdiv(decimal *n1, decimal *n2, decimal *result) { - int i; errno = 0; diff --git a/src/interfaces/ecpg/ecpglib/typename.c b/src/interfaces/ecpg/ecpglib/typename.c index d0081812f3d..db65ec10f18 100644 --- a/src/interfaces/ecpg/ecpglib/typename.c +++ b/src/interfaces/ecpg/ecpglib/typename.c @@ -65,7 +65,7 @@ ecpg_type_name(enum ECPGttype typ) default: abort(); } - return ""; /* keep MSC compiler happy */ + return ""; /* keep MSC compiler happy */ } int diff --git a/src/interfaces/ecpg/pgtypeslib/datetime.c b/src/interfaces/ecpg/pgtypeslib/datetime.c index 823626fcf56..6600759220e 100644 --- a/src/interfaces/ecpg/pgtypeslib/datetime.c +++ b/src/interfaces/ecpg/pgtypeslib/datetime.c @@ -52,7 +52,6 @@ PGTYPESdate_from_timestamp(timestamp dt) date PGTYPESdate_from_asc(char *str, char **endptr) { - date dDate; fsec_t fsec; struct tm tt, diff --git a/src/interfaces/ecpg/pgtypeslib/interval.c b/src/interfaces/ecpg/pgtypeslib/interval.c index bcc10eeafd1..efa775de15a 100644 --- a/src/interfaces/ecpg/pgtypeslib/interval.c +++ b/src/interfaces/ecpg/pgtypeslib/interval.c @@ -801,7 +801,6 @@ AppendSeconds(char *cp, int sec, fsec_t fsec, int precision, bool fillzeros) int EncodeInterval(struct /* pg_ */ tm * tm, fsec_t fsec, int style, char *str) { - char *cp = str; int year = tm->tm_year; int mon = tm->tm_mon; diff --git a/src/interfaces/ecpg/pgtypeslib/numeric.c b/src/interfaces/ecpg/pgtypeslib/numeric.c index 7257c812542..c56dda026ac 100644 --- a/src/interfaces/ecpg/pgtypeslib/numeric.c +++ b/src/interfaces/ecpg/pgtypeslib/numeric.c @@ -1362,7 +1362,6 @@ done: int PGTYPESnumeric_cmp(numeric *var1, numeric *var2) { - /* use cmp_abs function to calculate the result */ /* both are positive: normal comparation with cmp_abs */ diff --git a/src/interfaces/ecpg/pgtypeslib/timestamp.c b/src/interfaces/ecpg/pgtypeslib/timestamp.c index cccd2814d2c..36e811eba97 100644 --- a/src/interfaces/ecpg/pgtypeslib/timestamp.c +++ b/src/interfaces/ecpg/pgtypeslib/timestamp.c @@ -949,7 +949,6 @@ int PGTYPEStimestamp_add_interval(timestamp * tin, interval * span, timestamp * tout) { - if (TIMESTAMP_NOT_FINITE(*tin)) *tout = *tin; diff --git a/src/interfaces/ecpg/preproc/type.c b/src/interfaces/ecpg/preproc/type.c index cf2ff158413..5f0b20e2b1a 100644 --- a/src/interfaces/ecpg/preproc/type.c +++ b/src/interfaces/ecpg/preproc/type.c @@ -506,8 +506,8 @@ ECPGdump_a_struct(FILE *o, const char *name, const char *ind_name, char *arrsiz, */ struct ECPGstruct_member *p, *ind_p = NULL; - char *pbuf = (char *) mm_alloc(strlen(name) + ((prefix == NULL) ? 0 : strlen(prefix)) + 3); - char *ind_pbuf = (char *) mm_alloc(strlen(ind_name) + ((ind_prefix == NULL) ? 0 : strlen(ind_prefix)) + 3); + char *pbuf = (char *) mm_alloc(strlen(name) + ((prefix == NULL) ? 0 : strlen(prefix)) + 3); + char *ind_pbuf = (char *) mm_alloc(strlen(ind_name) + ((ind_prefix == NULL) ? 0 : strlen(ind_prefix)) + 3); if (atoi(arrsiz) == 1) sprintf(pbuf, "%s%s.", prefix ? prefix : "", name); |