📄 output - pc-lint.txt
字号:
}
UartDlg.cpp(458): error 744: (Info -- switch statement has no default)
}
UartDlg.cpp(466): error 744: (Info -- switch statement has no default)
}
UartDlg.cpp(472): error 744: (Info -- switch statement has no default)
m_mscomm.SetSThreshold(TX_TRIG); //设置输出缓冲区触发门限
UartDlg.cpp(477): error 734: (Info -- Loss of precision (arg. no. 1) (31 bits to 15 bits))
m_mscomm.SetRThreshold(RX_TRIG); //设置输入缓冲区触发门限
UartDlg.cpp(480): error 734: (Info -- Loss of precision (arg. no. 1) (31 bits to 15 bits))
m_mscomm.SetRTSEnable(false);
UartDlg.cpp(488): error 730: (Info -- Boolean argument to function)
m_mscomm.SetDTREnable(false);
UartDlg.cpp(489): error 730: (Info -- Boolean argument to function)
((CEdit *)GetDlgItem(IDC_STATUS_RTS))->EnableWindow(true);
UartDlg.cpp(499): error 1774: (Info -- Could use dynamic_cast to downcast polymorphic type 'CWnd')
UartDlg.cpp(499): error 730: (Info -- Boolean argument to function)
UartDlg.cpp(499): 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_STATUS_DTR))->EnableWindow(true);
UartDlg.cpp(500): error 1774: (Info -- Could use dynamic_cast to downcast polymorphic type 'CWnd')
UartDlg.cpp(500): error 730: (Info -- Boolean argument to function)
UartDlg.cpp(500): 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_STATUS_BREAK))->EnableWindow(true);
UartDlg.cpp(501): error 1774: (Info -- Could use dynamic_cast to downcast polymorphic type 'CWnd')
UartDlg.cpp(501): error 730: (Info -- Boolean argument to function)
UartDlg.cpp(501): 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(503): error 1774: (Info -- Could use dynamic_cast to downcast polymorphic type 'CWnd')
UartDlg.cpp(503): error 730: (Info -- Boolean argument to function)
UartDlg.cpp(503): 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);
UartDlg.cpp(504): error 1774: (Info -- Could use dynamic_cast to downcast polymorphic type 'CWnd')
UartDlg.cpp(504): error 730: (Info -- Boolean argument to function)
UartDlg.cpp(504): 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(505): error 1774: (Info -- Could use dynamic_cast to downcast polymorphic type 'CWnd')
UartDlg.cpp(505): error 730: (Info -- Boolean argument to function)
UartDlg.cpp(505): 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_RX_FRESH))->EnableWindow(true);
UartDlg.cpp(506): error 1774: (Info -- Could use dynamic_cast to downcast polymorphic type 'CWnd')
UartDlg.cpp(506): error 730: (Info -- Boolean argument to function)
UartDlg.cpp(506): 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_OPEN_PORT))->SetWindowText(_T("关闭串口"));
UartDlg.cpp(508): error 1774: (Info -- Could use dynamic_cast to downcast polymorphic type 'CWnd')
((CEdit *)GetDlgItem(IDC_OPEN_PORT))->SetWindowText(_T("打开串口"));
UartDlg.cpp(526): error 1774: (Info -- Could use dynamic_cast to downcast polymorphic type 'CWnd')
GetDlgItem(IDC_STATIC_OPEN)->ShowWindow(SW_HIDE);
UartDlg.cpp(527): error 534: (Warning -- Ignoring return value of function 'CWnd::ShowWindow(int)' (compare with line 2082, file D:\Program\Microsoft Visual Studio\VC98\MFC\INCLUDE\afxwin.h))
D:\Program\Microsoft Visual Studio\VC98\MFC\INCLUDE\afxwin.h(2082): error 830: (Info -- Location cited in prior message)
GetDlgItem(IDC_STATIC_OPEN)->ShowWindow(SW_HIDE);
UartDlg.cpp(529): error 534: (Warning -- Ignoring return value of function 'CWnd::ShowWindow(int)' (compare with line 2082, file D:\Program\Microsoft Visual Studio\VC98\MFC\INCLUDE\afxwin.h))
D:\Program\Microsoft Visual Studio\VC98\MFC\INCLUDE\afxwin.h(2082): error 830: (Info -- Location cited in prior message)
((CEdit *)GetDlgItem(IDC_STATUS_RTS))->EnableWindow(false);
UartDlg.cpp(532): error 1774: (Info -- Could use dynamic_cast to downcast polymorphic type 'CWnd')
UartDlg.cpp(532): error 730: (Info -- Boolean argument to function)
UartDlg.cpp(532): 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_STATUS_DTR))->EnableWindow(false);
UartDlg.cpp(533): error 1774: (Info -- Could use dynamic_cast to downcast polymorphic type 'CWnd')
UartDlg.cpp(533): error 730: (Info -- Boolean argument to function)
UartDlg.cpp(533): 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_STATUS_BREAK))->EnableWindow(false);
UartDlg.cpp(534): error 1774: (Info -- Could use dynamic_cast to downcast polymorphic type 'CWnd')
UartDlg.cpp(534): error 730: (Info -- Boolean argument to function)
UartDlg.cpp(534): 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(false);
UartDlg.cpp(535): error 1774: (Info -- Could use dynamic_cast to downcast polymorphic type 'CWnd')
UartDlg.cpp(535): error 730: (Info -- Boolean argument to function)
UartDlg.cpp(535): 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(false);
UartDlg.cpp(536): error 1774: (Info -- Could use dynamic_cast to downcast polymorphic type 'CWnd')
UartDlg.cpp(536): error 730: (Info -- Boolean argument to function)
UartDlg.cpp(536): 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(false);
UartDlg.cpp(537): error 1774: (Info -- Could use dynamic_cast to downcast polymorphic type 'CWnd')
UartDlg.cpp(537): error 730: (Info -- Boolean argument to function)
UartDlg.cpp(537): 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_RX_FRESH))->EnableWindow(false);
UartDlg.cpp(538): error 1774: (Info -- Could use dynamic_cast to downcast polymorphic type 'CWnd')
UartDlg.cpp(538): error 730: (Info -- Boolean argument to function)
UartDlg.cpp(538): 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(false);//更新线路状态信息
UartDlg.cpp(547): error 730: (Info -- Boolean argument to function)
UartDlg.cpp(547): 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(557): error 730: (Info -- Boolean argument to function)
UartDlg.cpp(557): 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(564): error 730: (Info -- Boolean argument to function)
UartDlg.cpp(564): 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_ERR_NUM))->EnableWindow(m_bErrDetect);
UartDlg.cpp(566): error 1774: (Info -- Could use dynamic_cast to downcast polymorphic type 'CWnd')
UartDlg.cpp(566): 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_ERR_RATE))->EnableWindow(m_bErrDetect);
UartDlg.cpp(567): error 1774: (Info -- Could use dynamic_cast to downcast polymorphic type 'CWnd')
UartDlg.cpp(567): 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_ERR_CYCLE_NUM))->EnableWindow(m_bErrDetect);
UartDlg.cpp(568): error 1774: (Info -- Could use dynamic_cast to downcast polymorphic type 'CWnd')
UartDlg.cpp(568): 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(false);
UartDlg.cpp(580): error 730: (Info -- Boolean argument to function)
UartDlg.cpp(580): 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(591): error 730: (Info -- Boolean argument to function)
UartDlg.cpp(591): 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(598): error 730: (Info -- Boolean argument to function)
UartDlg.cpp(598): 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)
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -