Skip to content

Commit

Permalink
fix build failure with GCC 14
Browse files Browse the repository at this point in the history
  • Loading branch information
dimkr committed Sep 13, 2024
1 parent 6e46ac6 commit db9b334
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
image: ["ubuntu:noble", "ubuntu:jammy", "ubuntu:focal"]
image: ["debian:trixie-slim", "ubuntu:noble", "ubuntu:jammy", "ubuntu:focal"]
container:
image: ${{ matrix.image }}
env:
Expand Down
3 changes: 2 additions & 1 deletion src/gtkdialog.c
Original file line number Diff line number Diff line change
Expand Up @@ -344,7 +344,8 @@ gint get_program_from_variable(gchar *name)
static gint
get_program_from_file(char *name)
{
int tmp, result;
size_t tmp;
ssize_t result;

PIP_DEBUG("Start.");

Expand Down
8 changes: 6 additions & 2 deletions src/signals.c
Original file line number Diff line number Diff line change
Expand Up @@ -1127,7 +1127,7 @@ void on_any_widget_file_changed_event(GFileMonitor *monitor, GFile *file,
#ifdef DEBUG_TRANSITS
fprintf(stderr, "%s(): Exiting.\n", __func__);
#endif
#if GTK_CHECK_VERSION(3,0,0)
#if HAVE_SYS_INOTIFY_H && GTK_CHECK_VERSION(3,0,0)
return TRUE;
#endif
}
Expand Down Expand Up @@ -1255,13 +1255,17 @@ void on_any_widget_auto_refresh_event(GFileMonitor *monitor, GFile *file,
break;
default:
fprintf(stderr, "%s(): Unhandled widget type.\n", __func__);
#if HAVE_SYS_INOTIFY_H && GTK_CHECK_VERSION(3,0,0)
return FALSE;
#else
return;
#endif
}

#ifdef DEBUG_TRANSITS
fprintf(stderr, "%s(): Exiting.\n", __func__);
#endif
#if GTK_CHECK_VERSION(3,0,0)
#if HAVE_SYS_INOTIFY_H && GTK_CHECK_VERSION(3,0,0)
return TRUE;
#endif
}
Expand Down

0 comments on commit db9b334

Please sign in to comment.