[ros-diffs] [gedmurphy] 22160: fix build for w3seek and his gcc 4.1 crew ; )

gedmurphy at svn.reactos.org gedmurphy at svn.reactos.org
Thu Jun 1 23:12:56 CEST 2006


Author: gedmurphy
Date: Fri Jun  2 01:12:55 2006
New Revision: 22160

URL: http://svn.reactos.ru/svn/reactos?rev=22160&view=rev
Log:
fix build for w3seek and his gcc 4.1 crew ;)

Modified:
    trunk/reactos/base/applications/servman/delete.c
    trunk/reactos/base/applications/servman/mainwnd.c
    trunk/reactos/base/applications/servman/query.c

Modified: trunk/reactos/base/applications/servman/delete.c
URL: http://svn.reactos.ru/svn/reactos/trunk/reactos/base/applications/servman/delete.c?rev=22160&r1=22159&r2=22160&view=diff
==============================================================================
--- trunk/reactos/base/applications/servman/delete.c (original)
+++ trunk/reactos/base/applications/servman/delete.c Fri Jun  2 01:12:55 2006
@@ -122,8 +122,8 @@
         {
             case IDOK:
                 if (DoDeleteService(Info, hDlg))
-                    ListView_DeleteItem(Info->hListView,
-                                        Info->SelectedItem);
+                    (void)ListView_DeleteItem(Info->hListView,
+                                              Info->SelectedItem);
 
                 DestroyIcon(hIcon);
                 EndDialog(hDlg,

Modified: trunk/reactos/base/applications/servman/mainwnd.c
URL: http://svn.reactos.ru/svn/reactos/trunk/reactos/base/applications/servman/mainwnd.c?rev=22160&r1=22159&r2=22160&view=diff
==============================================================================
--- trunk/reactos/base/applications/servman/mainwnd.c (original)
+++ trunk/reactos/base/applications/servman/mainwnd.c Fri Jun  2 01:12:55 2006
@@ -277,8 +277,8 @@
         return FALSE;
     }
 
-    ListView_SetExtendedListViewStyle(Info->hListView,
-                                      LVS_EX_FULLROWSELECT | LVS_EX_HEADERDRAGDROP);/*LVS_EX_GRIDLINES |*/
+    (void)ListView_SetExtendedListViewStyle(Info->hListView,
+                                            LVS_EX_FULLROWSELECT | LVS_EX_HEADERDRAGDROP);/*LVS_EX_GRIDLINES |*/
 
     lvc.mask = LVCF_TEXT | LVCF_SUBITEM | LVCF_WIDTH  | LVCF_FMT;
     lvc.fmt  = LVCFMT_LEFT;
@@ -293,9 +293,9 @@
                szTemp,
                sizeof(szTemp) / sizeof(TCHAR));
     lvc.pszText  = szTemp;
-    ListView_InsertColumn(Info->hListView,
-                          0,
-                          &lvc);
+    (void)ListView_InsertColumn(Info->hListView,
+                                0,
+                                &lvc);
 
     /* description */
     lvc.iSubItem = 1;
@@ -305,9 +305,9 @@
                szTemp,
                sizeof(szTemp) / sizeof(TCHAR));
     lvc.pszText  = szTemp;
-    ListView_InsertColumn(Info->hListView,
-                          1,
-                          &lvc);
+    (void)ListView_InsertColumn(Info->hListView,
+                                1,
+                                &lvc);
 
     /* status */
     lvc.iSubItem = 2;
@@ -317,9 +317,9 @@
                szTemp,
                sizeof(szTemp) / sizeof(TCHAR));
     lvc.pszText  = szTemp;
-    ListView_InsertColumn(Info->hListView,
-                          2,
-                          &lvc);
+    (void)ListView_InsertColumn(Info->hListView,
+                                2,
+                                &lvc);
 
     /* startup type */
     lvc.iSubItem = 3;
@@ -329,9 +329,9 @@
                szTemp,
                sizeof(szTemp) / sizeof(TCHAR));
     lvc.pszText  = szTemp;
-    ListView_InsertColumn(Info->hListView,
-                          3,
-                          &lvc);
+    (void)ListView_InsertColumn(Info->hListView,
+                                3,
+                                &lvc);
 
     /* logon as */
     lvc.iSubItem = 4;
@@ -341,9 +341,9 @@
                szTemp,
                sizeof(szTemp) / sizeof(TCHAR));
     lvc.pszText  = szTemp;
-    ListView_InsertColumn(Info->hListView,
-                          4,
-                          &lvc);
+    (void)ListView_InsertColumn(Info->hListView,
+                                4,
+                                &lvc);
 
     return TRUE;
 }
@@ -660,9 +660,9 @@
 			    {
                     LPNMLISTVIEW pnmv = (LPNMLISTVIEW) lParam;
 
-                    ListView_SortItems(Info->hListView,
-                                       CompareFunc,
-                                       pnmv->iSubItem);
+                    (void)ListView_SortItems(Info->hListView,
+                                             CompareFunc,
+                                             pnmv->iSubItem);
                     bSortAscending = !bSortAscending;
 			    }
                 break;

Modified: trunk/reactos/base/applications/servman/query.c
URL: http://svn.reactos.ru/svn/reactos/trunk/reactos/base/applications/servman/query.c?rev=22160&r1=22159&r2=22160&view=diff
==============================================================================
--- trunk/reactos/base/applications/servman/query.c (original)
+++ trunk/reactos/base/applications/servman/query.c Fri Jun  2 01:12:55 2006
@@ -251,12 +251,12 @@
                       hLgIconItem);
 
     /* assign the image to the list view */
-    ListView_SetImageList(Info->hListView,
-                          hSmall,
-                          LVSIL_SMALL);
-    ListView_SetImageList(Info->hListView,
-                          hLarge,
-                          LVSIL_NORMAL);
+    (void)ListView_SetImageList(Info->hListView,
+                                hSmall,
+                                LVSIL_SMALL);
+    (void)ListView_SetImageList(Info->hListView,
+                                hLarge,
+                                LVSIL_NORMAL);
 
 }
 
@@ -272,7 +272,7 @@
     DWORD Index;
     LPCTSTR Path = _T("System\\CurrentControlSet\\Services\\%s");
 
-    ListView_DeleteAllItems(Info->hListView);
+    (void)ListView_DeleteAllItems(Info->hListView);
 
     InitListViewImage(Info);
 




More information about the Ros-diffs mailing list