aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorgahr <gahr@FreeBSD.org>2011-08-13 00:05:29 +0800
committergahr <gahr@FreeBSD.org>2011-08-13 00:05:29 +0800
commit4ffdcdbbd3d3f377b9896420baf9baf9cb563061 (patch)
tree5ef2edd2613ab09bd1ef0a8e0ef0e6e2747a711a
parentfabc6c2f0741e8058a8f4e833bec7efcea4a4780 (diff)
downloadfreebsd-ports-gnome-4ffdcdbbd3d3f377b9896420baf9baf9cb563061.tar.gz
freebsd-ports-gnome-4ffdcdbbd3d3f377b9896420baf9baf9cb563061.tar.zst
freebsd-ports-gnome-4ffdcdbbd3d3f377b9896420baf9baf9cb563061.zip
- Chase warnings under gcc -Werror
-rw-r--r--textproc/xqilla/files/patch-gcc-werror69
1 files changed, 69 insertions, 0 deletions
diff --git a/textproc/xqilla/files/patch-gcc-werror b/textproc/xqilla/files/patch-gcc-werror
new file mode 100644
index 000000000000..798e790d2017
--- /dev/null
+++ b/textproc/xqilla/files/patch-gcc-werror
@@ -0,0 +1,69 @@
+--- ./include/xqilla/runtime/ResultImpl.hpp.orig 2011-08-12 09:38:56.000000000 +0200
++++ ./include/xqilla/runtime/ResultImpl.hpp 2011-08-12 09:50:47.000000000 +0200
+@@ -58,7 +58,7 @@
+ Result *resultPointer_;
+
+ private:
+- ResultImpl(const ResultImpl &) {};
++ ResultImpl(const ResultImpl &) : LocationInfo() {};
+ ResultImpl &operator=(const ResultImpl &) { return *this; };
+ };
+
+--- include/xqilla/events/EventSerializer.hpp.orig 2011-08-12 09:54:35.000000000 +0200
++++ include/xqilla/events/EventSerializer.hpp 2011-08-12 09:54:51.000000000 +0200
+@@ -37,7 +37,9 @@
+ XERCES_CPP_NAMESPACE_QUALIFIER XMLPlatformUtils::fgMemoryManager);
+ ~EventSerializer();
+
+- virtual void setLocationInfo(const LocationInfo *location) {}
++ virtual void setLocationInfo(const LocationInfo *location) {
++ (void) location;
++ }
+
+ virtual void startDocumentEvent(const XMLCh *documentURI, const XMLCh *encoding);
+ virtual void endDocumentEvent();
+--- ./include/xqilla/simple-api/XQillaConfiguration.hpp.orig 2011-08-12 09:56:32.000000000 +0200
++++ ./include/xqilla/simple-api/XQillaConfiguration.hpp 2011-08-12 09:56:51.000000000 +0200
+@@ -52,9 +52,13 @@
+
+ virtual URIResolver *createDefaultURIResolver(XERCES_CPP_NAMESPACE_QUALIFIER MemoryManager *memMgr) = 0;
+
+- virtual void populateStaticContext(StaticContext *context) {}
++ virtual void populateStaticContext(StaticContext *context) {
++ (void) context;
++ }
+
+- virtual void populateDynamicContext(DynamicContext *context) {}
++ virtual void populateDynamicContext(DynamicContext *context) {
++ (void) context;
++ }
+
+ virtual void testInterrupt() {}
+ };
+--- include/xqilla/events/EventHandler.hpp.orig 2010-01-13 16:40:36.000000000 +0100
++++ include/xqilla/events/EventHandler.hpp 2011-08-12 10:12:55.000000000 +0200
+@@ -35,7 +35,9 @@
+
+ /** Recieves a LocationInfo object that is owned by the caller, and will be
+ updated with the current location information as the parse progresses. */
+- virtual void setLocationInfo(const LocationInfo *location) {}
++ virtual void setLocationInfo(const LocationInfo *location) {
++ (void) location;
++ }
+
+ /** Handles a document node as an event */
+ virtual void startDocumentEvent(const XMLCh *documentURI, const XMLCh *encoding) = 0;
+@@ -61,7 +63,12 @@
+ virtual void namespaceEvent(const XMLCh *prefix, const XMLCh *uri) = 0;
+ /** Handles an atomic item as an event */
+ virtual void atomicItemEvent(AnyAtomicType::AtomicObjectType type, const XMLCh *value,
+- const XMLCh *typeURI, const XMLCh *typeName) {}
++ const XMLCh *typeURI, const XMLCh *typeName) {
++ (void) type;
++ (void) value;
++ (void) typeURI;
++ (void) typeName;
++ }
+ /** Called when all events have been reported */
+ virtual void endEvent() = 0;
+ };