aboutsummaryrefslogtreecommitdiffstats
path: root/calendar/gui/print.c
diff options
context:
space:
mode:
Diffstat (limited to 'calendar/gui/print.c')
-rw-r--r--calendar/gui/print.c14
1 files changed, 3 insertions, 11 deletions
diff --git a/calendar/gui/print.c b/calendar/gui/print.c
index 13f195c2b7..c902a1c4e7 100644
--- a/calendar/gui/print.c
+++ b/calendar/gui/print.c
@@ -1654,8 +1654,10 @@ print_day_details (GtkPrintContext *context,
/* this ugly thing is here only to get rid of compiler warning
* about unused 'jump_xpm_focused' */
- if (pixbuf)
+ if (pixbuf) {
+ /* coverity[dead_error_line] */
xpm = (const gchar **) jump_xpm_focused;
+ }
pixbuf = gdk_pixbuf_new_from_xpm_data (xpm);
}
@@ -2003,11 +2005,6 @@ print_week_event (GtkPrintContext *context,
if (!pixbuf) {
const gchar **xpm = (const gchar **) jump_xpm;
- /* this ugly thing is here only to get rid of compiler warning
- * about unused 'jump_xpm_focused' */
- if (pixbuf)
- xpm = (const gchar **) jump_xpm_focused;
-
pixbuf = gdk_pixbuf_new_from_xpm_data (xpm);
}
@@ -2840,11 +2837,6 @@ print_work_week_day_details (GtkPrintContext *context,
if (!pixbuf) {
const gchar **xpm = (const gchar **) jump_xpm;
- /* this ugly thing is here only to get rid of compiler warning
- * about unused 'jump_xpm_focused' */
- if (pixbuf)
- xpm = (const gchar **) jump_xpm_focused;
-
pixbuf = gdk_pixbuf_new_from_xpm_data (xpm);
}