[gxml/gxml-0.10] Removing warnings



commit c4a07d17b81e5030a44d254e01ff2d404de7e861
Author: Daniel Espinosa <esodan gmail com>
Date:   Sun Aug 28 18:02:11 2016 -0500

    Removing warnings

 configure.ac                   |    6 ++----
 gxml/libxml-CharacterData.vala |    2 +-
 gxml/libxml-Document.vala      |    4 +++-
 3 files changed, 6 insertions(+), 6 deletions(-)
---
diff --git a/configure.ac b/configure.ac
index aec90ac..299e0b5 100644
--- a/configure.ac
+++ b/configure.ac
@@ -157,9 +157,7 @@ if test x$enable_docs = xyes; then
   then
       AC_MSG_RESULT([valadoc documentation not build because not found])
   else
-      VAPIDIR=`$PKG_CONFIG --variable=vapidir libvala-$LIBVALA_REQUIRED`
       have_valadoc="yes"
-      AC_SUBST(VALADOC)
   fi
 fi
 AM_CONDITIONAL([HAVE_VALADOC], [test x$have_valadoc = xyes])
@@ -189,8 +187,8 @@ fi
 
 
 if test x$enable_devhelp_docs = xyes; then
-  if test x$have_valadoc = xno -o x$have_gtkdoc = xno; then
-    AC_MSG_ERROR([valadoc and gtk-doc is required, to generate devhelp documentation. Use --enable-valadoc 
and --enable-gtk-docs])
+  if test x$have_valadoc = xno; then
+    AC_MSG_ERROR([valadoc is required, to generate devhelp documentation. Use --enable-docs])
   fi
 fi
 
diff --git a/gxml/libxml-CharacterData.vala b/gxml/libxml-CharacterData.vala
index f7b6829..a77f878 100644
--- a/gxml/libxml-CharacterData.vala
+++ b/gxml/libxml-CharacterData.vala
@@ -169,7 +169,7 @@ namespace GXml {
                 * @param count The length in characters of the range that will be replaced
                 * @param new_segment The text that will be added
                 */
-               public void replace_data (ulong offset, ulong count, string new_segment) {
+               public new void replace_data (ulong offset, ulong count, string new_segment) {
                        if (! check_index_size ("replace_data", this.data.length, offset, count)) {
                                return;
                        }
diff --git a/gxml/libxml-Document.vala b/gxml/libxml-Document.vala
index aa2c074..7c17a59 100644
--- a/gxml/libxml-Document.vala
+++ b/gxml/libxml-Document.vala
@@ -232,7 +232,9 @@ namespace GXml {
                        this.implementation = impl;
 
                        xNode root;
-                       root = (xNode) this.create_element (qualified_name); // TODO: we do not currently 
support namespaces, but when we do, this new node will want one
+                       try {
+                               root = (xNode) this.create_element (qualified_name); // TODO: we do not 
currently support namespaces, but when we do, this new node will want one
+                       } catch { return; }
                        this.append_child (root);
 
                        this.namespace_uri = namespace_uri;


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