[gnote] Fix compiler warning in ring



commit 68c7e219f80bf32fe73b111d96f39e754d1e0dae
Author: Aurimas Černius <aurisc4 gmail com>
Date:   Sun Apr 28 19:56:46 2013 +0300

    Fix compiler warning in ring

 src/gnome_keyring/ring.cpp |    9 ++++++++-
 1 files changed, 8 insertions(+), 1 deletions(-)
---
diff --git a/src/gnome_keyring/ring.cpp b/src/gnome_keyring/ring.cpp
index 2a0ab5d..e9eaaab 100644
--- a/src/gnome_keyring/ring.cpp
+++ b/src/gnome_keyring/ring.cpp
@@ -1,7 +1,7 @@
 /*
  * gnote
  *
- * Copyright (C) 2012 Aurimas Cernius
+ * Copyright (C) 2012-2013 Aurimas Cernius
  *
  * This program is free software: you can redistribute it and/or modify
  * it under the terms of the GNU General Public License as published by
@@ -28,6 +28,9 @@
 namespace gnome {
 namespace keyring {
 
+// disable compilerdiagnostic to avoid warnings
+#pragma GCC diagnostic ignored "-Wmissing-field-initializers"
+
 
 SecretSchema Ring::s_schema = {
   "org.gnome.Gnote.Password", SECRET_SCHEMA_NONE,
@@ -37,6 +40,10 @@ SecretSchema Ring::s_schema = {
 };
 
 
+// restore original diagnostic options
+#pragma GCC diagnostic pop
+
+
 std::string Ring::find_password(const std::map<std::string, std::string> & atts)
 {
   GHashTable *attributes = keyring_attributes(atts);


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