Task #100515 - fixed.err

back to task #100515
download
Error: CPPCHECK_WARNING (CWE-398):
avahi-0.9.rc3/avahi-discover-standalone/main.c:314: style[constParameterCallback]: Parameter 'event' can be declared as pointer to const. However it seems that 'main_window_on_delete_event' is a callback function, if 'event' is declared with const you might also need to cast function pointer(s).
#  312|   }
#  313|   
#  314|-> static gboolean main_window_on_delete_event(AVAHI_GCC_UNUSED GtkWidget *widget, AVAHI_GCC_UNUSED GdkEvent *event, AVAHI_GCC_UNUSED gpointer user_data) {
#  315|       gtk_main_quit();
#  316|       return FALSE;

Error: CPPCHECK_WARNING (CWE-398):
avahi-0.9.rc3/avahi-discover-standalone/main.c:314: style[constParameterCallback]: Parameter 'widget' can be declared as pointer to const. However it seems that 'main_window_on_delete_event' is a callback function, if 'widget' is declared with const you might also need to cast function pointer(s).
#  312|   }
#  313|   
#  314|-> static gboolean main_window_on_delete_event(AVAHI_GCC_UNUSED GtkWidget *widget, AVAHI_GCC_UNUSED GdkEvent *event, AVAHI_GCC_UNUSED gpointer user_data) {
#  315|       gtk_main_quit();
#  316|       return FALSE;