$OpenBSD: patch-src_ghex-window_c,v 1.2 2016/06/14 08:36:37 jasper Exp $

https://bugzilla.gnome.org/show_bug.cgi?id=767638

--- src/ghex-window.c.orig	Tue Jun 14 09:53:18 2016
+++ src/ghex-window.c	Tue Jun 14 09:55:25 2016
@@ -781,8 +781,10 @@ ghex_window_update_status_message(GHexWindow *win)
         return;
     }
 
+#if defined(__GNUC__) && (__GNUC__ > 4)
 #pragma GCC diagnostic push
 #pragma GCC diagnostic ignored "-Wformat-nonliteral"
+#endif
     current_pos = gtk_hex_get_cursor(win->gh);
     if(g_snprintf(fmt, FMT_LEN, _("Offset: %s"), offset_fmt) < FMT_LEN) {
         g_snprintf(status, STATUS_LEN, fmt, current_pos);
@@ -797,7 +799,9 @@ ghex_window_update_status_message(GHexWindow *win)
                 }
             }
         }
+#if defined(__GNUC__) && (__GNUC__ > 4)
 #pragma GCC diagnostic pop
+#endif
 
         ghex_window_show_status(win, status);
     }
