DBGHELP: fix warnings exposed by -Wmissing-declarations and -Wwrite-strings

Mike McCormack mike at codeweavers.com
Wed Jun 8 23:28:24 CDT 2005


ChangeLog:
* fix warnings exposed by -Wmissing-declarations and -Wwrite-strings
-------------- next part --------------
Index: dlls/dbghelp/dwarf.c
===================================================================
RCS file: /home/wine/wine/dlls/dbghelp/dwarf.c,v
retrieving revision 1.5
diff -u -p -r1.5 dwarf.c
--- dlls/dbghelp/dwarf.c	23 May 2005 09:50:15 -0000	1.5
+++ dlls/dbghelp/dwarf.c	9 Jun 2005 04:29:25 -0000
@@ -541,12 +541,12 @@ static long dwarf2_leb128_as_signed(dwar
   return ret;
 }
 
-const char* dwarf2_debug_ctx(dwarf2_parse_context_t* ctx) 
+static const char* dwarf2_debug_ctx(dwarf2_parse_context_t* ctx) 
 {
   /*return wine_dbg_sprintf("ctx(0x%x,%u)", ctx->data - ctx->start_data, ctx->level); */
   return wine_dbg_sprintf("ctx(0x%x,%u)", ctx->data - ctx->data_stream, ctx->level); 
 }
-const char* dwarf2_debug_attr(dwarf2_abbrev_entry_attr_t* attr) 
+static const char* dwarf2_debug_attr(dwarf2_abbrev_entry_attr_t* attr) 
 {
   return wine_dbg_sprintf("attr(attr:0x%lx,form:0x%lx)", attr->attribute, attr->form);
 }
@@ -563,7 +563,7 @@ static void dwarf2_check_sibling(dwarf2_
 }
 
 
-dwarf2_abbrev_entry_attr_t* dwarf2_abbrev_entry_add_attr(dwarf2_abbrev_entry_t* abbrev_entry, unsigned long attribute, unsigned long form)
+static dwarf2_abbrev_entry_attr_t* dwarf2_abbrev_entry_add_attr(dwarf2_abbrev_entry_t* abbrev_entry, unsigned long attribute, unsigned long form)
 {
   dwarf2_abbrev_entry_attr_t* ret = NULL;
   dwarf2_abbrev_entry_attr_t* it = NULL;
@@ -585,7 +585,7 @@ dwarf2_abbrev_entry_attr_t* dwarf2_abbre
   return ret;
 }
 
-dwarf2_abbrev_entry_t* dwarf2_abbrev_table_add_entry(dwarf2_abbrev_table_t* abbrev_table, unsigned long entry_code, unsigned long tag, unsigned char have_child)
+static dwarf2_abbrev_entry_t* dwarf2_abbrev_table_add_entry(dwarf2_abbrev_table_t* abbrev_table, unsigned long entry_code, unsigned long tag, unsigned char have_child)
 {
   dwarf2_abbrev_entry_t* ret = NULL;
 
@@ -606,7 +606,7 @@ dwarf2_abbrev_entry_t* dwarf2_abbrev_tab
   return ret;
 }
 
-dwarf2_abbrev_entry_t* dwarf2_abbrev_table_find_entry(dwarf2_abbrev_table_t* abbrev_table, unsigned long entry_code)
+static dwarf2_abbrev_entry_t* dwarf2_abbrev_table_find_entry(dwarf2_abbrev_table_t* abbrev_table, unsigned long entry_code)
 {
   dwarf2_abbrev_entry_t* ret = NULL;
 
@@ -617,7 +617,7 @@ dwarf2_abbrev_entry_t* dwarf2_abbrev_tab
   return ret;
 }
 
-void dwarf2_abbrev_table_free(dwarf2_abbrev_table_t* abbrev_table)
+static void dwarf2_abbrev_table_free(dwarf2_abbrev_table_t* abbrev_table)
 {
   dwarf2_abbrev_entry_t* entry = NULL;
   dwarf2_abbrev_entry_t* next_entry = NULL;
@@ -636,7 +636,7 @@ void dwarf2_abbrev_table_free(dwarf2_abb
   abbrev_table->n_entries = 0;
 }
 
-dwarf2_abbrev_table_t* dwarf2_parse_abbrev_set(dwarf2_parse_context_t* abbrev_ctx)
+static dwarf2_abbrev_table_t* dwarf2_parse_abbrev_set(dwarf2_parse_context_t* abbrev_ctx)
 {
   dwarf2_abbrev_table_t* abbrev_table = NULL;
 
@@ -867,13 +867,13 @@ static void dwarf2_parse_attr(dwarf2_abb
   }
 }
 
-struct symt* dwarf2_find_symt_by_ref(struct module* module, unsigned long ref)
+static struct symt* dwarf2_find_symt_by_ref(struct module* module, unsigned long ref)
 {
   TRACE("want ref<0x%lx>\n", ref); 
   return NULL;
 }
 
-struct symt* dwarf2_add_symt_ref(struct module* module, unsigned long ref, struct symt* symt)
+static struct symt* dwarf2_add_symt_ref(struct module* module, unsigned long ref, struct symt* symt)
 {
   if (NULL != symt) return NULL;
   return NULL;
@@ -2171,10 +2171,4 @@ BOOL dwarf2_parse(struct module* module,
     dwarf2_abbrev_table_free(abbrev_table);
   }
   return bRet;
-}
-
-BOOL dwarf2_parse_lines(struct module* module, unsigned long load_offset,
-			const unsigned char* debug_line, unsigned int debug_line_size)
-{
-  return FALSE;
 }
Index: dlls/dbghelp/storage.c
===================================================================
RCS file: /home/wine/wine/dlls/dbghelp/storage.c,v
retrieving revision 1.3
diff -u -p -r1.3 storage.c
--- dlls/dbghelp/storage.c	18 May 2004 21:29:09 -0000	1.3
+++ dlls/dbghelp/storage.c	9 Jun 2005 04:29:25 -0000
@@ -112,7 +112,7 @@ static struct pool_arena* pool_is_last(s
     return NULL;
 }
 
-void* pool_realloc(struct pool* pool, void* p, unsigned old_size, unsigned new_size)
+static void* pool_realloc(struct pool* pool, void* p, unsigned old_size, unsigned new_size)
 {
     struct pool_arena*  arena;
     void*               new;


More information about the wine-patches mailing list