[PATCH] msxml3: Add missing const keyword to cache_copy and cache_free (GCC)

Alex Henrie alexhenrie24 at gmail.com
Thu Jul 12 07:30:00 CDT 2018


Signed-off-by: Alex Henrie <alexhenrie24 at gmail.com>
---
This resolves several warnings when compiling with GCC 8.1.
---
 dlls/msxml3/schema.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/dlls/msxml3/schema.c b/dlls/msxml3/schema.c
index 8087985204..faf9cd0aa2 100644
--- a/dlls/msxml3/schema.c
+++ b/dlls/msxml3/schema.c
@@ -980,7 +980,7 @@ static cache_entry* cache_entry_from_url(VARIANT url, xmlChar const* nsURI, MSXM
     return entry;
 }
 
-static void cache_free(void* data, xmlChar* name /* ignored */)
+static void cache_free(void* data, const xmlChar* name /* ignored */)
 {
     cache_entry_release((cache_entry*)data);
 }
@@ -1397,7 +1397,7 @@ static HRESULT WINAPI schema_cache_get_namespaceURI(IXMLDOMSchemaCollection2* if
     return S_OK;
 }
 
-static void cache_copy(void* data, void* dest, xmlChar* name)
+static void cache_copy(void* data, void* dest, const xmlChar* name)
 {
     schema_cache* This = (schema_cache*) dest;
     cache_entry* entry = (cache_entry*) data;
-- 
2.18.0




More information about the wine-devel mailing list