Skip to content

Commit

Permalink
Fix some compiler warnings
Browse files Browse the repository at this point in the history
* -Wno-inline in autoconf builds (was already in meson builds)
* Use non-deprecated name for g_spawn_check_wait_status
* Update libgwater
  • Loading branch information
lbonn committed Jul 8, 2024
1 parent 8f06e0a commit a7c0369
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion configure.ac
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ AM_PROG_AR
dnl ---------------------------------------------------------------------
dnl Base CFLAGS
dnl ---------------------------------------------------------------------
AM_CFLAGS="-Wall -Wextra -Wparentheses -Winline -pedantic -Wno-overlength-strings -Wunreachable-code"
AM_CFLAGS="-Wall -Wextra -Wparentheses -Wno-inline -pedantic -Wno-overlength-strings -Wunreachable-code"

dnl ---------------------------------------------------------------------
dnl Enable source code coverage reporting for GCC
Expand Down
4 changes: 2 additions & 2 deletions source/rofi-icon-fetcher.c
Original file line number Diff line number Diff line change
Expand Up @@ -210,11 +210,11 @@ static gboolean exec_thumbnailer_command(gchar **command_args) {
NULL, G_SPAWN_DEFAULT | G_SPAWN_SEARCH_PATH, NULL, NULL, NULL, NULL, &wait_status, &error);

if (spawned) {
return g_spawn_check_exit_status(wait_status, NULL);
return g_spawn_check_wait_status(wait_status, NULL);
} else {
g_warning("Error calling thumbnailer: %s", error->message);
g_error_free(error);

return FALSE;
}
}
Expand Down

0 comments on commit a7c0369

Please sign in to comment.