Previous 15994 Revisions Next

r7707 Sunday 4th April, 2010 at 23:21:14 UTC by Firewave
Disabled/removed some unused variables reported by cppcheck
[src/mess/formats]d64_dsk.c
[src/osd/winui]columnedit.c directories.c

src/osd/winui/columnedit.c
r7706r7707
3838   LV_ITEM lvi;
3939   TCHAR   buf[80];
4040   //int    nFrom, nTo;
41   int    res;
4241   BOOL    b_res;
4342
4443   //nFrom = ListView_GetItemCount(hFrom);
r7706r7707
6160      // Add this item to the Show and delete it from Available
6261      b_res = ListView_DeleteItem(hFrom, lvi.iItem);
6362      lvi.iItem = ListView_GetItemCount(hTo);
64      res = ListView_InsertItem(hTo, &lvi);
63      (void)ListView_InsertItem(hTo, &lvi);
6564      ListView_SetItemState(hTo, lvi.iItem,
6665                       LVIS_FOCUSED | LVIS_SELECTED,
6766                       LVIS_FOCUSED | LVIS_SELECTED);
r7706r7707
7675   LV_ITEM lvi;
7776   TCHAR   buf[80];
7877   int    nMaxpos;
79   int      res;
8078   BOOL    b_res;
8179   
8280   lvi.iItem = ListView_GetNextItem(hWnd, -1, LVIS_SELECTED | LVIS_FOCUSED);
r7706r7707
9896      // Add this item to the Show and delete it from Available
9997      b_res = ListView_DeleteItem(hWnd, lvi.iItem);
10098      lvi.iItem += (bDown) ? 1 : -1;
101      res = ListView_InsertItem(hWnd,&lvi);
99      (void)ListView_InsertItem(hWnd,&lvi);
102100      ListView_SetItemState(hWnd, lvi.iItem,
103101                       LVIS_FOCUSED | LVIS_SELECTED,
104102                       LVIS_FOCUSED | LVIS_SELECTED);
r7706r7707
130128   int         i, nCount = 0;
131129   LV_ITEM     lvi;
132130   DWORD      dwShowStyle, dwAvailableStyle, dwView;
133   int         res;
134131   BOOL      b_res;
135132
136133   switch (Msg)
r7706r7707
183180         if (shown[order[i]])
184181         {
185182            lvi.iItem = nShown;
186            res = ListView_InsertItem(hShown, &lvi);
183            (void)ListView_InsertItem(hShown, &lvi);
187184            nShown++;
188185         }
189186         else
190187         {
191188            lvi.iItem = nAvail;
192            res = ListView_InsertItem(hAvailable, &lvi);
189            (void)ListView_InsertItem(hAvailable, &lvi);
193190            nAvail++;
194191         }
195192      }
src/osd/winui/directories.c
r7706r7707
215215   LV_ITEM Item;
216216   HWND   hList  = GetDlgItem(hDlg, IDC_DIR_LIST);
217217   HWND   hCombo = GetDlgItem(hDlg, IDC_DIR_COMBO);
218   int      res;
219218   BOOL   b_res;
220219
221220   /* Remove previous */
r7706r7707
231230   if (IsMultiDir(nType))
232231   {
233232      Item.pszText = (TCHAR*) TEXT(DIRLIST_NEWENTRYTEXT);
234      res = ListView_InsertItem(hList, &Item);
233      (void)ListView_InsertItem(hList, &Item);
235234      for (i = DirInfo_NumDir(g_pDirInfo, nType) - 1; 0 <= i; i--)
236235      {
237236         Item.pszText = DirInfo_Path(g_pDirInfo, nType, i);
238         res = ListView_InsertItem(hList, &Item);
237         (void)ListView_InsertItem(hList, &Item);
239238      }
240239   }
241240   else
242241   {
243242      Item.pszText = DirInfo_Dir(g_pDirInfo, nType);
244      res = ListView_InsertItem(hList, &Item);
243      (void)ListView_InsertItem(hList, &Item);
245244   }
246245
247246   /* select first one */
src/mess/formats/d64_dsk.c
r7706r7707
372372      UINT16 gcr_track_size;
373373      UINT8 *gcr_track_data;
374374      UINT64 gcr_pos = G64_DATA_START;
375      int error_offset = 0;
375      //int error_offset = 0;
376376
377377      /* determine logical track number */
378378      int dos_track = get_dos_track(track);
r7706r7707
505505            gcr_track_data[gcr_pos + i] = 0x55;
506506         gcr_pos += 14;
507507
508         error_offset++;
508         //error_offset++;
509509      }
510510
511511      /* copy GCR track data to buffer */

Previous 15994 Revisions Next


© 1998-2018 The MESS Team