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

Lines changed: 1 addition & 0 deletions
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

Lines changed: 1 addition & 1 deletion
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

Lines changed: 0 additions & 3 deletions
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)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy