Snippets for apcupsd 3.14.14 from Fedora x86_64
Sourced from https://kojipkgs.fedoraproject.org/packages/apcupsd/3.14.14/42.fc45/data/logs/x86_64/build.log.
-
/usr/include/gtk-2.0/gtk/gtktypeutils.h:236:1: warning: ‘GTypeDebugFlags’ is deprecated [-Wdeprecated-declarations] 236 | void gtk_type_init (GTypeDebugFlags debug_flags); | ^~~~ -
/usr/include/gconf/2/gconf/gconf-value.h:139:3: warning: ‘GTime’ is deprecated: Use 'GDateTime' instead [-Wdeprecated-declarations] 139 | GTime mod_time; /* time of the modification */ | ^~~~~ -
/usr/include/gconf/2/gconf/gconf-value.h:144:1: warning: ‘GTime’ is deprecated: Use 'GDateTime' instead [-Wdeprecated-declarations] 144 | GTime gconf_meta_info_mod_time (GConfMetaInfo *gcmi); | ^~~~~ -
/usr/include/gconf/2/gconf/gconf-value.h:153:46: warning: ‘GTime’ is deprecated: Use 'GDateTime' instead [-Wdeprecated-declarations] 153 | GTime mod_time); | ^~~~~ -
/usr/include/gtk-2.0/gtk/gtktooltips.h:73:3: warning: ‘GTimeVal’ is deprecated: Use 'GDateTime' instead [-Wdeprecated-declarations] 73 | GTimeVal last_popdown; | ^~~~~~~~ -
gapcmon.c:770:17: warning: variable ‘drawing_area’ set but not used [-Wunused-but-set-variable=] 770 | GtkWidget *drawing_area = NULL; | ^~~~~~~~~~~~ -
gapcmon.c:1362:18: warning: variable ‘clip_area’ set but not used [-Wunused-but-set-variable=] 1362 | GdkRectangle clip_area; | ^~~~~~~~~ -
gapcmon.c:1631:10: warning: ‘gdk_pixbuf_unref’ is deprecated: Use 'g_object_unref' instead [-Wdeprecated-declarations] 1631 | gdk_pixbuf_unref(scaled); | ^~~~~~~~~~~~~~~~ -
gapcmon.c:2120:53: warning: variable ‘dCharge’ set but not used [-Wunused-but-set-variable=] 2120 | gdouble dValue = 0.00, dScale = 0.0, dtmp = 0.0, dCharge = 0.0, d_loadpct = 0.0, d_watt = 0.0; | ^~~~~~~ -
gapcmon.c:4526:4: warning: ‘gdk_pixbuf_unref’ is deprecated: Use 'g_object_unref' instead [-Wdeprecated-declarations] 4526 | gdk_pixbuf_unref(scaled); | ^~~~~~~~~~~~~~~~ -
gapcmon.c:4822:34: warning: variable ‘b_add’ set but not used [-Wunused-but-set-variable=] 4822 | gboolean b_m_enabled = FALSE, b_add = TRUE, b_active_valid = FALSE; | ^~~~~ -
gapcmon.c:4821:13: warning: variable ‘b_m_valid’ set but not used [-Wunused-but-set-variable=] 4821 | gboolean b_m_valid = FALSE; | ^~~~~~~~~ -
gapcmon.c:4820:13: warning: variable ‘b_k_is_dir’ set but not used [-Wunused-but-set-variable=] 4820 | gboolean b_k_is_dir = FALSE; | ^~~~~~~~~~ -
gapcmon.c:5235:4: warning: ‘g_mutex_free’ is deprecated [-Wdeprecated-declarations] 5235 | g_mutex_free(pm->gm_update); | ^~~~~~~~~~~~ -
gapcmon.c:5241:10: warning: ‘g_mutex_free’ is deprecated [-Wdeprecated-declarations] 5241 | g_mutex_free(pm->phs.sq[h_index].gm_graph); | ^~~~~~~~~~~~ -
gapcmon.c:5546:10: warning: ‘g_mutex_free’ is deprecated [-Wdeprecated-declarations] 5546 | g_mutex_free(pm->phs.sq[h_index].gm_graph); | ^~~~~~~~~~~~ -
gapcmon.c:5548:7: warning: ‘g_mutex_new’ is deprecated [-Wdeprecated-declarations] 5548 | pm->phs.sq[h_index].gm_graph = g_mutex_new(); | ^~ -
gapcmon.c:6243:4: warning: ‘g_mutex_new’ is deprecated [-Wdeprecated-declarations] 6243 | pm->gm_update = g_mutex_new(); | ^~ -
gapcmon.c:6264:7: warning: ‘g_thread_create’ is deprecated: Use 'g_thread_new' instead [-Wdeprecated-declarations] 6264 | g_thread_create((GThreadFunc) gapc_net_thread_qwork, pm, TRUE, NULL); | ^~~~~~~~~~~~~~~ -
gapcmon.c:6452:4: warning: ‘g_type_init’ is deprecated [-Wdeprecated-declarations] 6452 | g_type_init(); | ^~~~~~~~~~~ -
gapcmon.c:6453:4: warning: ‘g_thread_init’ is deprecated [-Wdeprecated-declarations] 6453 | g_thread_init(NULL); | ^~~~~~~~~~~~~ -
gapcmon.c:6446:15: warning: variable ‘window’ set but not used [-Wunused-but-set-variable=] 6446 | GtkWidget *window = NULL; | ^~~~~~ -
upsfetch.c:158:42: warning: ‘%s’ directive output may be truncated writing up to 199 bytes into a region of size 170 [-Wformat-truncation=] 158 | "upsfetch: tcp_open failed for %s port %d", lhost, nis_port); | ^~ ~~~~~ -
upsfetch.c:119:41: warning: ‘%s’ directive output may be truncated writing up to 199 bytes into a region of size 170 [-Wformat-truncation=] 119 | "upsfetch: tcp_open failed for %s port %d", lhost, nis_port); | ^~ ~~~~~ -
upsimage.c:77:44: warning: ‘__snprintf_chk’ output may be truncated before the last format character [-Wformat-truncation=] 77 | (void) snprintf(text, sizeof(text), "%d", next); | ^ -
upsimage.c:81:44: warning: ‘__snprintf_chk’ output may be truncated before the last format character [-Wformat-truncation=] 81 | (void) snprintf(text, sizeof(text), "%d", next); | ^ -
upsimage.c:85:42: warning: ‘%d’ directive output may be truncated writing between 1 and 11 bytes into a region of size 10 [-Wformat-truncation=] 85 | (void) snprintf(text, sizeof(text), "%d", next); | ^~ -
upsimage.c:89:42: warning: ‘%d’ directive output may be truncated writing between 1 and 11 bytes into a region of size 10 [-Wformat-truncation=] 89 | (void) snprintf(text, sizeof(text), "%d", next); | ^~ -
upsimage.c:93:42: warning: ‘%d’ directive output may be truncated writing between 1 and 11 bytes into a region of size 10 [-Wformat-truncation=] 93 | (void) snprintf(text, sizeof(text), "%d", next); | ^~ -
options.c:65:14: warning: ‘pidfile’ violates the C++ One Definition Rule [-Wodr] 65 | extern char *pidfile; | ^