Skip to content

Commit 581418c

Browse files
authored
out-stackdriver: removed unused variables (fluent#5677)
Signed-off-by: to-s <[email protected]>
1 parent 72088e3 commit 581418c

File tree

2 files changed

+0
-4
lines changed

2 files changed

+0
-4
lines changed

plugins/out_stackdriver/stackdriver.c

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1045,9 +1045,7 @@ static void pack_labels(struct flb_stackdriver *ctx,
10451045
msgpack_object *payload_labels_ptr)
10461046
{
10471047
int i;
1048-
int ret;
10491048
int labels_size = 0;
1050-
char *val;
10511049
struct mk_list *head;
10521050
struct flb_kv *list_kv;
10531051
msgpack_object_kv *obj_kv = NULL;
@@ -1586,7 +1584,6 @@ static flb_sds_t stackdriver_format(struct flb_stackdriver *ctx,
15861584
const char *newtag;
15871585
const char *new_log_name;
15881586
msgpack_object *obj;
1589-
msgpack_object *labels_ptr;
15901587
msgpack_unpacked result;
15911588
msgpack_sbuffer mp_sbuf;
15921589
msgpack_packer mp_pck;

plugins/out_stackdriver/stackdriver_conf.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -186,7 +186,6 @@ static int parse_key_value_list(struct flb_stackdriver *ctx,
186186
flb_sds_t val;
187187
struct mk_list *head;
188188
struct flb_slist_entry *entry;
189-
msgpack_object_kv *kv = NULL;
190189

191190
if (origin) {
192191
mk_list_foreach(head, origin) {

0 commit comments

Comments
 (0)