From ff03a12ca9ab665524a10ce25210c8eecd299033 Mon Sep 17 00:00:00 2001 From: dholland Date: Fri, 21 Dec 2012 02:58:55 +0000 Subject: Silence extensive const warnings that were obscuring everything else. --- .../patches/patch-src_Attribute_attrvalue.h | 18 ++++++++++++++++ .../ivtools/patches/patch-src_ComUtil_comutil.arg | 17 +++++++++++++++ .../ivtools/patches/patch-src_ComUtil_symbols.c | 24 ++++++++++++++++++++++ 3 files changed, 59 insertions(+) create mode 100644 graphics/ivtools/patches/patch-src_Attribute_attrvalue.h create mode 100644 graphics/ivtools/patches/patch-src_ComUtil_comutil.arg create mode 100644 graphics/ivtools/patches/patch-src_ComUtil_symbols.c (limited to 'graphics/ivtools') diff --git a/graphics/ivtools/patches/patch-src_Attribute_attrvalue.h b/graphics/ivtools/patches/patch-src_Attribute_attrvalue.h new file mode 100644 index 00000000000..aed1e75be5a --- /dev/null +++ b/graphics/ivtools/patches/patch-src_Attribute_attrvalue.h @@ -0,0 +1,18 @@ +$NetBSD: patch-src_Attribute_attrvalue.h,v 1.1 2012/12/21 02:58:55 dholland Exp $ + +Silence extensive const warnings. + +--- src/Attribute/attrvalue.h~ 2009-08-11 19:39:25.000000000 +0000 ++++ src/Attribute/attrvalue.h +@@ -39,9 +39,9 @@ class LeakChecker; + #include + + extern "C" { +- int symbol_add(char*); ++ int symbol_add(const char*); + int symbol_del(int); +- int symbol_find(char*); ++ int symbol_find(const char*); + char* symbol_pntr(int); + } + diff --git a/graphics/ivtools/patches/patch-src_ComUtil_comutil.arg b/graphics/ivtools/patches/patch-src_ComUtil_comutil.arg new file mode 100644 index 00000000000..b962558c999 --- /dev/null +++ b/graphics/ivtools/patches/patch-src_ComUtil_comutil.arg @@ -0,0 +1,17 @@ +$NetBSD: patch-src_ComUtil_comutil.arg,v 1.1 2012/12/21 02:58:55 dholland Exp $ + +Silence extensive const warnings. + +--- src/ComUtil/comutil.arg~ 2004-02-11 00:28:08.000000000 +0000 ++++ src/ComUtil/comutil.arg +@@ -6,8 +6,8 @@ int mblock_resize(int id,unsigned nel); + void *mblock_pntr(int id); + int mblock_sizes(int id,unsigned *nel,unsigned *size,unsigned long *nbytes); + /* SYMBOLS.C */ +-int symbol_add(char *string); +-int symbol_find(char *string); ++int symbol_add(const char *string); ++int symbol_find(const char *string); + int symbol_del (int id); + int symbol_len (int id); + char *symbol_pntr(int id); diff --git a/graphics/ivtools/patches/patch-src_ComUtil_symbols.c b/graphics/ivtools/patches/patch-src_ComUtil_symbols.c new file mode 100644 index 00000000000..4b527753c04 --- /dev/null +++ b/graphics/ivtools/patches/patch-src_ComUtil_symbols.c @@ -0,0 +1,24 @@ +$NetBSD: patch-src_ComUtil_symbols.c,v 1.1 2012/12/21 02:58:55 dholland Exp $ + +Silence extensive const warnings. + +--- src/ComUtil/symbols.c~ 2008-05-07 16:17:26.000000000 +0000 ++++ src/ComUtil/symbols.c +@@ -86,7 +86,7 @@ Summary: + #include + */ + +-int symbol_add (char * string) ++int symbol_add (const char * string) + + /*! + Return Value: >= 0 unique identifier for this symbol, +@@ -336,7 +336,7 @@ Summary: + #include + */ + +-int symbol_find (char * string) ++int symbol_find (const char * string) + + /*! + Return Value: >=0 unique identifier for symbol if symbol found, -- cgit v1.2.3