PATCH: dlls/comctl32/listview.c -- warning removal

Gerald Pfeifer pfeifer at dbai.tuwien.ac.at
Wed Feb 12 07:46:48 CST 2003


I am fully aware that this is not pretty :-/, but can we still have it;
please?

Or we could simply remove the two assert()s, as we have an ERR() there
anyway.

Thanks,
Gerald

ChangeLog:
Avoid warnings caused by assert(...).

Index: listview.c
===================================================================
RCS file: /home/wine/wine/dlls/comctl32/listview.c,v
retrieving revision 1.339
diff -u -3 -p -r1.339 listview.c
--- listview.c	11 Feb 2003 22:17:31 -0000	1.339
+++ listview.c	12 Feb 2003 13:44:34 -0000
@@ -781,6 +781,7 @@ static int get_ansi_notification(INT uni
     }
     ERR("unknown notification %x\n", unicodeNotificationCode);
     assert(FALSE);
+    return 0;
 }

 /*
@@ -4754,6 +4755,7 @@ static INT LISTVIEW_GetCountPerPage(LIST
 	return LISTVIEW_GetCountPerRow(infoPtr) * LISTVIEW_GetCountPerColumn(infoPtr);
     }
     assert(FALSE);
+    return 0;
 }

 /***



More information about the wine-patches mailing list