iphlpapi: remove stray code (clang)
Austin English
austinenglish at gmail.com
Sun Oct 3 19:21:38 CDT 2010
Fixes:
clang -m32 -c -I. -I. -I../../../include -I../../../include
-DWINE_STRICT_PROTOTYPES -D_REENTRANT -fPIC -Wall -pipe
-fno-strict-aliasing -Wdeclaration-after-statement -Wstrict-prototypes
-Wtype-limits -Wwrite-strings -Wpointer-arith -std=gnu89 -g -o
iphlpapi.o iphlpapi.c
iphlpapi.c:177:49: warning: expression result unused [-Wunused-value]
apiReturn = gGetNumberOfInterfaces(NULL), numInterfaces;
^~~~~~~~~~~~~
1 diagnostic generated.
--
-Austin
-------------- next part --------------
diff --git a/dlls/iphlpapi/tests/iphlpapi.c b/dlls/iphlpapi/tests/iphlpapi.c
index 2410aca..f48470c 100644
--- a/dlls/iphlpapi/tests/iphlpapi.c
+++ b/dlls/iphlpapi/tests/iphlpapi.c
@@ -174,7 +174,7 @@ static void testGetNumberOfInterfaces(void)
/* Crashes on Vista */
if (0) {
- apiReturn = gGetNumberOfInterfaces(NULL), numInterfaces;
+ apiReturn = gGetNumberOfInterfaces(NULL);
if (apiReturn == ERROR_NOT_SUPPORTED)
return;
ok(apiReturn == ERROR_INVALID_PARAMETER,
More information about the wine-patches
mailing list