Skip to content

Commit

Permalink
fix warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
azvegint committed Jun 26, 2024
1 parent 30b0c2a commit d83d454
Showing 1 changed file with 12 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -234,7 +234,10 @@ gboolean initXdgDesktopPortal() {
}
portal->senderName = nameStr->str;

#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Wunused-result"
g_string_free(nameStr, FALSE);
#pragma GCC diagnostic pop

DEBUG_SCREENCAST("connection/sender name %s / %s\n",
name,
Expand Down Expand Up @@ -275,7 +278,10 @@ static void updateRequestPath(
);

*token = tokenStr->str;
#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Wunused-result"
g_string_free(tokenStr, FALSE);
#pragma GCC diagnostic pop

GString *pathStr = g_string_new(NULL);

Expand All @@ -287,7 +293,10 @@ static void updateRequestPath(
);

*path = pathStr->str;
#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Wunused-result"
g_string_free(pathStr, FALSE);
#pragma GCC diagnostic pop
}

static void updateSessionToken(
Expand All @@ -305,7 +314,10 @@ static void updateSessionToken(
);

*token = tokenStr->str;
#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Wunused-result"
g_string_free(tokenStr, FALSE);
#pragma GCC diagnostic pop
}

static void registerScreenCastCallback(
Expand Down

0 comments on commit d83d454

Please sign in to comment.