Skip to content

Commit 6e6f9d7

Browse files
committed
fix some warnings
1 parent bf90a72 commit 6e6f9d7

File tree

3 files changed

+2
-4
lines changed

3 files changed

+2
-4
lines changed

Makefile

+1
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ ifdef USE_PGXS
1616
PG_CONFIG = pg_config
1717
PGXS := $(shell $(PG_CONFIG) --pgxs)
1818
include $(PGXS)
19+
CC=gcc47
1920
else
2021
subdir = contrib/jsquery
2122
top_builddir = ../..

jsquery_op.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ checkScalarEquality(JsQueryItem *jsq, JsonbValue *jb)
101101
if (jb->type == jbvBinary)
102102
return false;
103103

104-
if (jb->type != jsq->type /* see enums */)
104+
if ((int)jb->type != (int)jsq->type /* see enums */)
105105
return false;
106106

107107
switch(jsq->type)

jsquery_support.c

-3
Original file line numberDiff line numberDiff line change
@@ -51,13 +51,10 @@ jsqInit(JsQueryItem *v, JsQuery *js)
5151
void
5252
jsqInitByBuffer(JsQueryItem *v, char *base, int32 pos)
5353
{
54-
int xxx;
55-
5654
v->base = base;
5755

5856
read_byte(v->type, base, pos);
5957

60-
xxx = v->type;
6158
v->hint = v->type & JSQ_HINT_MASK;
6259
v->type &= ~JSQ_HINT_MASK;
6360

0 commit comments

Comments
 (0)