naemon / naemon-core

Networks, Applications and Event Monitor
http://www.naemon.io/
GNU General Public License v2.0
151 stars 63 forks source link

fix building on fedora rawhide #425

Closed sni closed 1 year ago

sni commented 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