summarylogtreecommitdiffstats
path: root/cronie-1.7.2-fix-for-gcc15.patch
AgeCommit message (Collapse)Author
2025-05-07cronie-selinux 1.7.2-2 update: fix compilation with GCC 15Nicolas Iooss
Backport https://github.com/cronie-crond/cronie/commit/09c630c654b2aeff06a90a412cce0a60ab4955a4 ("load_entry(): Make error_func prototype complete") to fix https://github.com/cronie-crond/cronie/issues/193 ("Fails to compile with GCC15/C23"). Fixes: src/user.c: In function ‘load_user’: src/user.c:145:54: error: passing argument 2 of ‘load_entry’ from incompatible pointer type [-Wincompatible-pointer-types] 145 | e = load_entry(file, log_error, pw, envp); | ^~~~~~~~~ | | | void (*)(const char *) src/funcs.h:92:37: note: expected ‘void (*)(void)’ but argument is of type ‘void (*)(const char *)’ 92 | entry *load_entry(FILE *, void (*)(), struct passwd *, char **); | ^~~~~~~~~~ src/user.c:38:1: note: ‘log_error’ declared here 38 | log_error (const char *msg) | ^~~~~~~~~