📄 output - pc-lint.txt
字号:
UpdateData(true);
UartDlg.cpp(606): error 730: (Info -- Boolean argument to function)
UartDlg.cpp(606): error 534: (Warning -- Ignoring return value of function 'CWnd::UpdateData(int)' (compare with line 2230, file D:\Program\Microsoft Visual Studio\VC98\MFC\INCLUDE\afxwin.h))
D:\Program\Microsoft Visual Studio\VC98\MFC\INCLUDE\afxwin.h(2230): error 830: (Info -- Location cited in prior message)
UpdateData(false);
UartDlg.cpp(617): error 730: (Info -- Boolean argument to function)
UartDlg.cpp(617): error 534: (Warning -- Ignoring return value of function 'CWnd::UpdateData(int)' (compare with line 2230, file D:\Program\Microsoft Visual Studio\VC98\MFC\INCLUDE\afxwin.h))
D:\Program\Microsoft Visual Studio\VC98\MFC\INCLUDE\afxwin.h(2230): error 830: (Info -- Location cited in prior message)
UpdateData(true);
UartDlg.cpp(622): error 730: (Info -- Boolean argument to function)
UartDlg.cpp(622): error 534: (Warning -- Ignoring return value of function 'CWnd::UpdateData(int)' (compare with line 2230, file D:\Program\Microsoft Visual Studio\VC98\MFC\INCLUDE\afxwin.h))
D:\Program\Microsoft Visual Studio\VC98\MFC\INCLUDE\afxwin.h(2230): error 830: (Info -- Location cited in prior message)
((CEdit *)GetDlgItem(IDC_TX_EDIT))->EnableWindow(!m_bTxCycle);
UartDlg.cpp(623): error 1774: (Info -- Could use dynamic_cast to downcast polymorphic type 'CWnd')
UartDlg.cpp(623): error 730: (Info -- Boolean argument to function)
UartDlg.cpp(623): error 534: (Warning -- Ignoring return value of function 'CWnd::EnableWindow(int)' (compare with line 2110, file D:\Program\Microsoft Visual Studio\VC98\MFC\INCLUDE\afxwin.h))
D:\Program\Microsoft Visual Studio\VC98\MFC\INCLUDE\afxwin.h(2110): error 830: (Info -- Location cited in prior message)
((CEdit *)GetDlgItem(IDC_TX_HEX))->EnableWindow(!m_bTxCycle);
UartDlg.cpp(624): error 1774: (Info -- Could use dynamic_cast to downcast polymorphic type 'CWnd')
UartDlg.cpp(624): error 730: (Info -- Boolean argument to function)
UartDlg.cpp(624): error 534: (Warning -- Ignoring return value of function 'CWnd::EnableWindow(int)' (compare with line 2110, file D:\Program\Microsoft Visual Studio\VC98\MFC\INCLUDE\afxwin.h))
D:\Program\Microsoft Visual Studio\VC98\MFC\INCLUDE\afxwin.h(2110): error 830: (Info -- Location cited in prior message)
UpdateData(true);
UartDlg.cpp(636): error 730: (Info -- Boolean argument to function)
UartDlg.cpp(636): error 534: (Warning -- Ignoring return value of function 'CWnd::UpdateData(int)' (compare with line 2230, file D:\Program\Microsoft Visual Studio\VC98\MFC\INCLUDE\afxwin.h))
D:\Program\Microsoft Visual Studio\VC98\MFC\INCLUDE\afxwin.h(2230): error 830: (Info -- Location cited in prior message)
SetTimer(1, m_iTxAutoSpan, NULL);//ms 设置定时器1用来间隔发送数据
UartDlg.cpp(657): error 732: (Info -- Loss of sign (arg. no. 2) (int to unsigned int))
UartDlg.cpp(657): error 534: (Warning -- Ignoring return value of function 'CWnd::SetTimer(unsigned int, unsigned int, void (__stdcall *)(struct HWND__ *, unsigned int, unsigned int, unsigned long))' (compare with line 166, file D:\Program\Microsoft Visual Studio\VC98\MFC\INCLUDE\afxwin2.inl))
D:\Program\Microsoft Visual Studio\VC98\MFC\INCLUDE\afxwin2.inl(166): error 830: (Info -- Location cited in prior message)
KillTimer(1);
UartDlg.cpp(670): error 534: (Warning -- Ignoring return value of function 'CWnd::KillTimer(int)' (compare with line 170, file D:\Program\Microsoft Visual Studio\VC98\MFC\INCLUDE\afxwin2.inl))
D:\Program\Microsoft Visual Studio\VC98\MFC\INCLUDE\afxwin2.inl(170): error 830: (Info -- Location cited in prior message)
UpdateData(true);
UartDlg.cpp(680): error 730: (Info -- Boolean argument to function)
UartDlg.cpp(680): error 534: (Warning -- Ignoring return value of function 'CWnd::UpdateData(int)' (compare with line 2230, file D:\Program\Microsoft Visual Studio\VC98\MFC\INCLUDE\afxwin.h))
D:\Program\Microsoft Visual Studio\VC98\MFC\INCLUDE\afxwin.h(2230): error 830: (Info -- Location cited in prior message)
KillTimer(1);
UartDlg.cpp(684): error 534: (Warning -- Ignoring return value of function 'CWnd::KillTimer(int)' (compare with line 170, file D:\Program\Microsoft Visual Studio\VC98\MFC\INCLUDE\afxwin2.inl))
D:\Program\Microsoft Visual Studio\VC98\MFC\INCLUDE\afxwin2.inl(170): error 830: (Info -- Location cited in prior message)
KillTimer(1);
UartDlg.cpp(699): error 534: (Warning -- Ignoring return value of function 'CWnd::KillTimer(int)' (compare with line 170, file D:\Program\Microsoft Visual Studio\VC98\MFC\INCLUDE\afxwin2.inl))
D:\Program\Microsoft Visual Studio\VC98\MFC\INCLUDE\afxwin2.inl(170): error 830: (Info -- Location cited in prior message)
UpdateData(false);
UartDlg.cpp(707): error 730: (Info -- Boolean argument to function)
UartDlg.cpp(707): error 534: (Warning -- Ignoring return value of function 'CWnd::UpdateData(int)' (compare with line 2230, file D:\Program\Microsoft Visual Studio\VC98\MFC\INCLUDE\afxwin.h))
D:\Program\Microsoft Visual Studio\VC98\MFC\INCLUDE\afxwin.h(2230): error 830: (Info -- Location cited in prior message)
UpdateData(true);
UartDlg.cpp(717): error 730: (Info -- Boolean argument to function)
UartDlg.cpp(717): error 534: (Warning -- Ignoring return value of function 'CWnd::UpdateData(int)' (compare with line 2230, file D:\Program\Microsoft Visual Studio\VC98\MFC\INCLUDE\afxwin.h))
D:\Program\Microsoft Visual Studio\VC98\MFC\INCLUDE\afxwin.h(2230): error 830: (Info -- Location cited in prior message)
}
UartDlg.cpp(740): error 744: (Info -- switch statement has no default)
SetEvent(m_hEventTxCts);
UartDlg.cpp(748): error 534: (Warning -- Ignoring return value of function 'SetEvent(void *)' (compare with line 2200, file D:\Program\Microsoft Visual Studio\VC98\Include\winbase.h))
D:\Program\Microsoft Visual Studio\VC98\Include\winbase.h(2200): error 830: (Info -- Location cited in prior message)
UpdateData(true);
UartDlg.cpp(763): error 730: (Info -- Boolean argument to function)
UartDlg.cpp(763): error 534: (Warning -- Ignoring return value of function 'CWnd::UpdateData(int)' (compare with line 2230, file D:\Program\Microsoft Visual Studio\VC98\MFC\INCLUDE\afxwin.h))
D:\Program\Microsoft Visual Studio\VC98\MFC\INCLUDE\afxwin.h(2230): error 830: (Info -- Location cited in prior message)
UpdateData(false);
UartDlg.cpp(778): error 730: (Info -- Boolean argument to function)
UartDlg.cpp(778): error 534: (Warning -- Ignoring return value of function 'CWnd::UpdateData(int)' (compare with line 2230, file D:\Program\Microsoft Visual Studio\VC98\MFC\INCLUDE\afxwin.h))
D:\Program\Microsoft Visual Studio\VC98\MFC\INCLUDE\afxwin.h(2230): error 830: (Info -- Location cited in prior message)
((CEdit *)GetDlgItem(IDC_RX_SHOW_PAUSE))->SetWindowText(_T("恢复显示"));
UartDlg.cpp(787): error 1774: (Info -- Could use dynamic_cast to downcast polymorphic type 'CWnd')
((CEdit *)GetDlgItem(IDC_RX_SHOW_PAUSE))->SetWindowText(_T("暂停显示"));
UartDlg.cpp(791): error 1774: (Info -- Could use dynamic_cast to downcast polymorphic type 'CWnd')
UpdateData(false);
UartDlg.cpp(799): error 730: (Info -- Boolean argument to function)
UartDlg.cpp(799): error 534: (Warning -- Ignoring return value of function 'CWnd::UpdateData(int)' (compare with line 2230, file D:\Program\Microsoft Visual Studio\VC98\MFC\INCLUDE\afxwin.h))
D:\Program\Microsoft Visual Studio\VC98\MFC\INCLUDE\afxwin.h(2230): error 830: (Info -- Location cited in prior message)
UpdateData(false);
UartDlg.cpp(806): error 730: (Info -- Boolean argument to function)
UartDlg.cpp(806): error 534: (Warning -- Ignoring return value of function 'CWnd::UpdateData(int)' (compare with line 2230, file D:\Program\Microsoft Visual Studio\VC98\MFC\INCLUDE\afxwin.h))
D:\Program\Microsoft Visual Studio\VC98\MFC\INCLUDE\afxwin.h(2230): error 830: (Info -- Location cited in prior message)
SetEvent(m_hEventTxCts); //设置事件
UartDlg.cpp(841): error 534: (Warning -- Ignoring return value of function 'SetEvent(void *)' (compare with line 2200, file D:\Program\Microsoft Visual Studio\VC98\Include\winbase.h))
D:\Program\Microsoft Visual Studio\VC98\Include\winbase.h(2200): error 830: (Info -- Location cited in prior message)
}
UartDlg.cpp(904): error 744: (Info -- switch statement has no default)
UpdateData(false);
UartDlg.cpp(905): error 730: (Info -- Boolean argument to function)
UartDlg.cpp(905): error 534: (Warning -- Ignoring return value of function 'CWnd::UpdateData(int)' (compare with line 2230, file D:\Program\Microsoft Visual Studio\VC98\MFC\INCLUDE\afxwin.h))
D:\Program\Microsoft Visual Studio\VC98\MFC\INCLUDE\afxwin.h(2230): error 830: (Info -- Location cited in prior message)
UpdateData(false);
UartDlg.cpp(987): error 730: (Info -- Boolean argument to function)
UartDlg.cpp(987): error 534: (Warning -- Ignoring return value of function 'CWnd::UpdateData(int)' (compare with line 2230, file D:\Program\Microsoft Visual Studio\VC98\MFC\INCLUDE\afxwin.h))
D:\Program\Microsoft Visual Studio\VC98\MFC\INCLUDE\afxwin.h(2230): error 830: (Info -- Location cited in prior message)
UpdateData(true);
UartDlg.cpp(992): error 730: (Info -- Boolean argument to function)
UartDlg.cpp(992): error 534: (Warning -- Ignoring return value of function 'CWnd::UpdateData(int)' (compare with line 2230, file D:\Program\Microsoft Visual Studio\VC98\MFC\INCLUDE\afxwin.h))
D:\Program\Microsoft Visual Studio\VC98\MFC\INCLUDE\afxwin.h(2230): error 830: (Info -- Location cited in prior message)
UpdateData(false); // 将以上设置的变量保存
UartDlg.cpp(1022): error 730: (Info -- Boolean argument to function)
UartDlg.cpp(1022): error 534: (Warning -- Ignoring return value of function 'CWnd::UpdateData(int)' (compare with line 2230, file D:\Program\Microsoft Visual Studio\VC98\MFC\INCLUDE\afxwin.h))
D:\Program\Microsoft Visual Studio\VC98\MFC\INCLUDE\afxwin.h(2230): error 830: (Info -- Location cited in prior message)
((CEdit *)GetDlgItem(IDC_OPEN_PORT))->EnableWindow(true); // 使能打开串口按钮
UartDlg.cpp(1023): error 1774: (Info -- Could use dynamic_cast to downcast polymorphic type 'CWnd')
UartDlg.cpp(1023): error 730: (Info -- Boolean argument to function)
UartDlg.cpp(1023): error 534: (Warning -- Ignoring return value of function 'CWnd::EnableWindow(int)' (compare with line 2110, file D:\Program\Microsoft Visual Studio\VC98\MFC\INCLUDE\afxwin.h))
D:\Program\Microsoft Visual Studio\VC98\MFC\INCLUDE\afxwin.h(2110): error 830: (Info -- Location cited in prior message)
((CEdit *)GetDlgItem(IDC_TX_AUTO_SPAN_SEL))->EnableWindow(true); // 使能间隔发送多选框
UartDlg.cpp(1024): error 1774: (Info -- Could use dynamic_cast to downcast polymorphic type 'CWnd')
UartDlg.cpp(1024): error 730: (Info -- Boolean argument to function)
UartDlg.cpp(1024): error 534: (Warning -- Ignoring return value of function 'CWnd::EnableWindow(int)' (compare with line 2110, file D:\Program\Microsoft Visual Studio\VC98\MFC\INCLUDE\afxwin.h))
D:\Program\Microsoft Visual Studio\VC98\MFC\INCLUDE\afxwin.h(2110): error 830: (Info -- Location cited in prior message)
((CEdit *)GetDlgItem(IDC_TX_AUTO_CTS))->EnableWindow(true); // 使能检测CTS发送多选框
UartDlg.cpp(1025): error 1774: (Info -- Could use dynamic_cast to downcast polymorphic type 'CWnd')
UartDlg.cpp(1025): error 730: (Info -- Boolean argument to function)
UartDlg.cpp(1025): error 534: (Warning -- Ignoring return value of function 'CWnd::EnableWindow(int)' (compare with line 2110, file D:\Program\Microsoft Visual Studio\VC98\MFC\INCLUDE\afxwin.h))
D:\Program\Microsoft Visual Studio\VC98\MFC\INCLUDE\afxwin.h(2110): error 830: (Info -- Location cited in prior message)
((CEdit *)GetDlgItem(IDC_TX_MANUAL))->EnableWindow(true); // 使能手动发送多选框
UartDlg.cpp(1026): error 1774: (Info -- Could use dynamic_cast to downcast polymorphic type 'CWnd')
UartDlg.cpp(1026): error 730: (Info -- Boolean argument to function)
UartDlg.cpp(1026): error 534: (Warning -- Ignoring return value of function 'CWnd::EnableWindow(int)' (compare with line 2110, file D:\Program\Microsoft Visual Studio\VC98\MFC\INCLUDE\afxwin.h))
D:\Program\Microsoft Visual Studio\VC98\MFC\INCLUDE\afxwin.h(2110): error 830: (Info -- Location cited in prior message)
AfxMessageBox("Input data error!");
UartDlg.cpp(1028): error 534: (Warning -- Ignoring return value of function 'AfxMessageBox(const char *, unsigned int, unsigned int)' (compare with line 4577, file D:\Program\Microsoft Visual Studio\VC98\MFC\INCLUDE\afxwin.h))
D:\Program\Microsoft Visual Studio\VC98\MFC\INCLUDE\afxwin.h(4577): error 830: (Info -- Location cited in prior message)
--- Global Wrap-up
D:\Program\Microsoft Visual Studio\VC98\MFC\INCLUDE\afxtls_.h(143): error 1512: (Warning -- destructor for base class 'CThreadLocalObject' (line 143, file D:\Program\Microsoft Visual Studio\VC98\MFC\INCLUDE\afxtls_.h) is not virtual)
D:\Program\Microsoft Visual Studio\VC98\MFC\INCLUDE\afxtls_.h(155): error 1512: (Warning -- destructor for base class 'CProcessLocalObject' (line 155, file D:\Program\Microsoft Visual Studio\VC98\MFC\INCLUDE\afxtls_.h) is not virtual)
error 900: (Note -- Successful completion, 402 messages produced)
Tool returned code: 255
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -