discard explicitly returned value
Modified: trunk/reactos/subsys/system/explorer/dialogs/searchprogram.cpp
Modified: trunk/reactos/subsys/system/explorer/explorer.cpp
Modified: trunk/reactos/subsys/system/explorer/shell/mainframe.cpp
Modified: trunk/reactos/subsys/system/explorer/shell/shellbrowser.cpp
Modified: trunk/reactos/subsys/system/explorer/taskbar/favorites.cpp
Modified: trunk/reactos/subsys/system/explorer/taskbar/traynotify.cpp
Modified: trunk/reactos/subsys/system/ibrowser/favorites.cpp
Modified: trunk/reactos/subsys/system/ibrowser/ibrowser.cpp
Modified: trunk/reactos/subsys/system/ibrowser/mainframe.cpp
_____
Modified: trunk/reactos/subsys/system/explorer/dialogs/searchprogram.cpp
--- trunk/reactos/subsys/system/explorer/dialogs/searchprogram.cpp
2005-07-28 22:43:24 UTC (rev 16846)
+++ trunk/reactos/subsys/system/explorer/dialogs/searchprogram.cpp
2005-07-28 23:19:22 UTC (rev 16847)
@@ -103,7 +103,7 @@
_haccel = LoadAccelerators(g_Globals._hInstance,
MAKEINTRESOURCE(IDA_SEARCH_PROGRAM));
- ListView_SetImageList(_list_ctrl,
g_Globals._icon_cache.get_sys_imagelist(), LVSIL_SMALL);
+ (void)ListView_SetImageList(_list_ctrl,
g_Globals._icon_cache.get_sys_imagelist(), LVSIL_SMALL);
LV_COLUMN column = {LVCF_FMT|LVCF_WIDTH|LVCF_TEXT, LVCFMT_LEFT,
250};
@@ -263,7 +263,7 @@
{
switch(nmsg) {
case WM_CLOSE:
- ListView_SetImageList(_list_ctrl, 0, LVSIL_SMALL);
// detach system image list
+ (void)ListView_SetImageList(_list_ctrl, 0, LVSIL_SMALL);
// detach system image list
goto def;
case PM_TRANSLATE_MSG: {
_____
Modified: trunk/reactos/subsys/system/explorer/explorer.cpp
--- trunk/reactos/subsys/system/explorer/explorer.cpp 2005-07-28
22:43:24 UTC (rev 16846)
+++ trunk/reactos/subsys/system/explorer/explorer.cpp 2005-07-28
23:19:22 UTC (rev 16847)
@@ -519,10 +519,10 @@
void SetWindowIcon(HWND hwnd, UINT nid)
{
HICON hIcon = ResIcon(nid);
- Window_SetIcon(hwnd, ICON_BIG, hIcon);
+ (void)Window_SetIcon(hwnd, ICON_BIG, hIcon);
HICON hIconSmall = SmallIcon(nid);
- Window_SetIcon(hwnd, ICON_SMALL, hIconSmall);
+ (void)Window_SetIcon(hwnd, ICON_SMALL, hIconSmall);
}
_____
Modified: trunk/reactos/subsys/system/explorer/shell/mainframe.cpp
--- trunk/reactos/subsys/system/explorer/shell/mainframe.cpp
2005-07-28 22:43:24 UTC (rev 16846)
+++ trunk/reactos/subsys/system/explorer/shell/mainframe.cpp
2005-07-28 23:19:22 UTC (rev 16847)
@@ -215,7 +215,7 @@
WS_CHILD|WS_TABSTOP|WS_BORDER|/*WS_VISIBLE|*/WS_CHILD|TVS_HASLINES|TVS_H
ASBUTTONS|TVS_SHOWSELALWAYS|TVS_INFOTIP,
-1, -1, 200, 0, _hwnd,
(HMENU)IDW_SIDEBAR, g_Globals._hInstance, 0);
- TreeView_SetImageList(_hsidebar, _himl, TVSIL_NORMAL);
+ (void)TreeView_SetImageList(_hsidebar, _himl, TVSIL_NORMAL);
CheckMenuItem(_menu_info._hMenuView, ID_VIEW_SIDE_BAR,
MF_BYCOMMAND|MF_UNCHECKED/*MF_CHECKED*/);
_____
Modified: trunk/reactos/subsys/system/explorer/shell/shellbrowser.cpp
--- trunk/reactos/subsys/system/explorer/shell/shellbrowser.cpp
2005-07-28 22:43:24 UTC (rev 16846)
+++ trunk/reactos/subsys/system/explorer/shell/shellbrowser.cpp
2005-07-28 23:19:22 UTC (rev 16847)
@@ -50,7 +50,7 @@
ShellBrowser::~ShellBrowser()
{
- TreeView_SetImageList(_left_hwnd, 0, TVSIL_NORMAL);
+ (void)TreeView_SetImageList(_left_hwnd, 0, TVSIL_NORMAL);
if (_pShellView)
_pShellView->Release();
@@ -137,7 +137,7 @@
{
CONTEXT("ShellBrowserChild::InitializeTree()");
- TreeView_SetImageList(_left_hwnd, himl, TVSIL_NORMAL);
+ (void)TreeView_SetImageList(_left_hwnd, himl, TVSIL_NORMAL);
TreeView_SetScrollTime(_left_hwnd, 100);
TV_INSERTSTRUCT tvInsert;
@@ -199,7 +199,7 @@
ScreenToClient(_left_hwnd, &tvhti.pt);
tvhti.flags = LVHT_NOWHERE;
- TreeView_HitTest(_left_hwnd, &tvhti);
+ (void)TreeView_HitTest(_left_hwnd, &tvhti);
if (TVHT_ONITEM & tvhti.flags) {
LPARAM itemData = TreeView_GetItemData(_left_hwnd,
tvhti.hItem);
@@ -318,7 +318,7 @@
tvInsert.hInsertAfter = TVI_LAST;
tvInsert.hParent = hParentItem;
- TreeView_InsertItem(_left_hwnd, &tvInsert);
+ (void)TreeView_InsertItem(_left_hwnd,
&tvInsert);
}
++cnt;
_____
Modified: trunk/reactos/subsys/system/explorer/taskbar/favorites.cpp
--- trunk/reactos/subsys/system/explorer/taskbar/favorites.cpp
2005-07-28 22:43:24 UTC (rev 16846)
+++ trunk/reactos/subsys/system/explorer/taskbar/favorites.cpp
2005-07-28 23:19:22 UTC (rev 16847)
@@ -362,7 +362,7 @@
tv.iImage = tv.iSelectedImage =
icon.add_to_imagelist(himagelist, hdc_wnd);
}
- TreeView_InsertItem(hwnd, &tvi);
+ (void)TreeView_InsertItem(hwnd, &tvi);
}
}
}
_____
Modified: trunk/reactos/subsys/system/explorer/taskbar/traynotify.cpp
--- trunk/reactos/subsys/system/explorer/taskbar/traynotify.cpp
2005-07-28 22:43:24 UTC (rev 16846)
+++ trunk/reactos/subsys/system/explorer/taskbar/traynotify.cpp
2005-07-28 23:19:22 UTC (rev 16847)
@@ -918,7 +918,7 @@
ImageList_AddAlphaIcon(_himl, SmallIcon(IDI_DOT_RED), hbkgnd,
canvas);
}
- TreeView_SetImageList(_tree_ctrl, _himl, TVSIL_NORMAL);
+ (void)TreeView_SetImageList(_tree_ctrl, _himl, TVSIL_NORMAL);
_resize_mgr.Add(IDC_NOTIFY_ICONS, RESIZE);
_resize_mgr.Add(IDC_LABEL1, MOVE_Y);
@@ -1077,7 +1077,7 @@
tv.lParam = (LPARAM)idx;
tv.pszText = (LPTSTR)txt.c_str();
tv.iSelectedImage = tv.iImage = ImageList_AddAlphaIcon(_himl,
hicon, GetStockBrush(WHITE_BRUSH), hdc);
- TreeView_InsertItem(_tree_ctrl, &tvi);
+ (void)TreeView_InsertItem(_tree_ctrl, &tvi);
}
LRESULT TrayNotifyDlg::WndProc(UINT nmsg, WPARAM wparam, LPARAM lparam)
_____
Modified: trunk/reactos/subsys/system/ibrowser/favorites.cpp
--- trunk/reactos/subsys/system/ibrowser/favorites.cpp 2005-07-28
22:43:24 UTC (rev 16846)
+++ trunk/reactos/subsys/system/ibrowser/favorites.cpp 2005-07-28
23:19:22 UTC (rev 16847)
@@ -360,7 +360,7 @@
tv.iImage = tv.iSelectedImage =
icon.add_to_imagelist(himagelist, hdc_wnd);
}
- TreeView_InsertItem(hwnd, &tvi);
+ (void)TreeView_InsertItem(hwnd, &tvi);
}
}
}
_____
Modified: trunk/reactos/subsys/system/ibrowser/ibrowser.cpp
--- trunk/reactos/subsys/system/ibrowser/ibrowser.cpp 2005-07-28
22:43:24 UTC (rev 16846)
+++ trunk/reactos/subsys/system/ibrowser/ibrowser.cpp 2005-07-28
23:19:22 UTC (rev 16847)
@@ -344,10 +344,10 @@
void SetWindowIcon(HWND hwnd, UINT nid)
{
HICON hIcon = ResIcon(nid);
- Window_SetIcon(hwnd, ICON_BIG, hIcon);
+ (void)Window_SetIcon(hwnd, ICON_BIG, hIcon);
HICON hIconSmall = SmallIcon(nid);
- Window_SetIcon(hwnd, ICON_SMALL, hIconSmall);
+ (void)Window_SetIcon(hwnd, ICON_SMALL, hIconSmall);
}
_____
Modified: trunk/reactos/subsys/system/ibrowser/mainframe.cpp
--- trunk/reactos/subsys/system/ibrowser/mainframe.cpp 2005-07-28
22:43:24 UTC (rev 16846)
+++ trunk/reactos/subsys/system/ibrowser/mainframe.cpp 2005-07-28
23:19:22 UTC (rev 16847)
@@ -119,7 +119,7 @@
WS_CHILD|WS_TABSTOP|WS_BORDER|/*WS_VISIBLE|*/WS_CHILD|TVS_HASLINES|TVS_H
ASBUTTONS|TVS_SHOWSELALWAYS|TVS_INFOTIP,
-1, -1, 200, 0, _hwnd,
(HMENU)IDW_SIDEBAR, g_hInstance, 0);
- TreeView_SetImageList(_hsidebar, _himl, TVSIL_NORMAL);
+ (void)TreeView_SetImageList(_hsidebar, _himl, TVSIL_NORMAL);
CheckMenuItem(_menu_info._hMenuView, ID_VIEW_SIDE_BAR,
MF_BYCOMMAND|MF_UNCHECKED/*MF_CHECKED*/);