[gnome-control-center] user-accounts: Work-around "format not a string literal" error



commit c92aa114b4830636339fa76b746cb04e98cc9904
Author: Bastien Nocera <hadess hadess net>
Date:   Thu Apr 7 14:31:32 2016 +0200

    user-accounts: Work-around "format not a string literal" error
    
    This isn't possible to fix without quite a bit of code movement. This
    will do for now though.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=764727

 panels/user-accounts/um-fingerprint-dialog.c |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)
---
diff --git a/panels/user-accounts/um-fingerprint-dialog.c b/panels/user-accounts/um-fingerprint-dialog.c
index 7729091..7aa6ecc 100644
--- a/panels/user-accounts/um-fingerprint-dialog.c
+++ b/panels/user-accounts/um-fingerprint-dialog.c
@@ -33,6 +33,8 @@
 
 /* Translate fprintd strings */
 #define TR(s) dgettext("fprintd", s)
+#pragma GCC diagnostic push
+#pragma GCC diagnostic ignored "-Wformat-nonliteral"
 
 /* This must match the number of images on the 2nd page in the UI file */
 #define MAX_ENROLL_STAGES 5
@@ -757,3 +759,4 @@ fingerprint_button_clicked (GtkWindow *parent,
         }
 }
 
+#pragma GCC diagnostic pop


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]