dbghelp: Add a return statement for the default/assert case in elf_map_file.

Gerald Pfeifer gerald at pfeifer.com
Thu Mar 31 13:21:17 CDT 2011


This avoids a warning in GCC 4.6.

Gerald
---
 dlls/dbghelp/elf_module.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/dlls/dbghelp/elf_module.c b/dlls/dbghelp/elf_module.c
index 4ea27f6..8d06065 100644
--- a/dlls/dbghelp/elf_module.c
+++ b/dlls/dbghelp/elf_module.c
@@ -294,6 +294,7 @@ static BOOL elf_map_file(struct elf_map_file_data* emfd, struct image_file_map*
         filename = NULL;
         break;
     default: assert(0);
+        return FALSE;
     }
 
     elf_reset_file_map(fmap);
-- 
1.7.4.1



More information about the wine-patches mailing list