cheese: Fix GCC 14 build

This commit is contained in:
Bobby Rong
2024-12-24 01:25:31 +08:00
parent c81571ad8a
commit df40c21c9b
2 changed files with 6 additions and 1 deletions
@@ -58,7 +58,7 @@ stdenv.mkDerivation (finalAttrs: {
# Fix GCC 14 build.
# https://hydra.nixos.org/build/282164464/nixlog/3
env.NIX_CFLAGS_COMPILE = "-D_POSIX_C_SOURCE -Wno-implicit-function-declaration";
env.NIX_CFLAGS_COMPILE = "-D_POSIX_C_SOURCE -Wno-error=implicit-function-declaration";
passthru = {
tests.version = testers.testVersion {
+5
View File
@@ -95,6 +95,11 @@ stdenv.mkDerivation rec {
)
'';
# Fix GCC 14 build
# ../libcheese/cheese-flash.c:135:22: error: assignment to 'GtkWidget *' {aka 'struct _GtkWidget *'} from
# incompatible pointer type 'GObject *' {aka 'struct _GObject *'} [-Wincompatible-pointer-types]
env.NIX_CFLAGS_COMPILE = "-Wno-error=incompatible-pointer-types";
passthru = {
updateScript = gnome.updateScript {
packageName = "cheese";