Closed sni closed 1 year ago
fixes builds on rawhide.
[ 112s] src/naemon/notifications.c:57:13: error: conflicting types for 'notification_reason_name' due to enum/integer mismatch; have 'const char *(enum NotificationReason)' [-Werror=enum-int-mismatch] [ 112s] 57 | const char *notification_reason_name(enum NotificationReason reason) [ 112s] | ^~~~~~~~~~~~~~~~~~~~~~~~ [ 112s] In file included from src/naemon/notifications.c:1: [ 112s] src/naemon/notifications.h:86:13: note: previous declaration of 'notification_reason_name' with type 'const char *(unsigned int)' [ 112s] 86 | const char *notification_reason_name(unsigned int reason_type); [ 112s] | ^~~~~~~~~~~~~~~~~~~~~~~~ [ 113s] cc1: all warnings being treated as errors [ 113s] make[1]: *** [Makefile:2017: src/naemon/notifications.lo] Error 1
fixes builds on rawhide.