Skip to content

Commit

Permalink
Fix nonliteral string warning in flatpak_invocation_return_error()
Browse files Browse the repository at this point in the history
We're only forwarding a format string, which we can tell gcc by
adding a G_GNUC_PRINTF marker.
  • Loading branch information
alexlarsson committed Jan 14, 2021
1 parent d5de05b commit b8d8e5b
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions system-helper/flatpak-system-helper.c
Original file line number Diff line number Diff line change
Expand Up @@ -293,6 +293,12 @@ get_sender_pid (GDBusMethodInvocation *invocation)
return 0;
}

static void
flatpak_invocation_return_error (GDBusMethodInvocation *invocation,
GError *error,
const char *fmt,
...) G_GNUC_PRINTF (3, 4);

static void
flatpak_invocation_return_error (GDBusMethodInvocation *invocation,
GError *error,
Expand Down

0 comments on commit b8d8e5b

Please sign in to comment.