Skip to content

Commit

Permalink
in_kubernetes_events: Type cast explicitly
Browse files Browse the repository at this point in the history
With the release of GCC 14.1, some previous warnings are now errors,
including the check_event_is_filtered call in
process_events. To fix the build, add explicitly type cast.

Signed-off-by: javex <florian.ruechel@inexplicity.de>
  • Loading branch information
Javex authored and edsiper committed Jun 6, 2024
1 parent 1f8a672 commit 4a0591a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion plugins/in_kubernetes_events/kubernetes_events.c
Original file line number Diff line number Diff line change
Expand Up @@ -487,7 +487,7 @@ static int process_events(struct k8s_events *ctx, char *in_data, size_t in_size,
goto msg_error;
}

if (check_event_is_filtered(ctx, item, &ts) == FLB_TRUE) {
if (check_event_is_filtered(ctx, item, (time_t *) &ts) == FLB_TRUE) {
continue;
}

Expand Down

0 comments on commit 4a0591a

Please sign in to comment.