📄 output - pc-lint.txt
字号:
UartDlg.cpp(263): error 539: (Warning -- Did not expect positive indentation from line 251)
UartDlg.cpp(251): error 830: (Info -- Location cited in prior message)
pDC->SetTextColor(ColorRGB);
UartDlg.cpp(281): error 534: (Warning -- Ignoring return value of function 'CDC::SetTextColor(unsigned long)' (compare with line 725, file D:\Program\Microsoft Visual Studio\VC98\MFC\INCLUDE\afxwin.h))
D:\Program\Microsoft Visual Studio\VC98\MFC\INCLUDE\afxwin.h(725): error 830: (Info -- Location cited in prior message)
CDialog::OnInitDialog();
UartDlg.cpp(292): error 534: (Warning -- Ignoring return value of function 'CDialog::OnInitDialog(void)' (compare with line 2613, file D:\Program\Microsoft Visual Studio\VC98\MFC\INCLUDE\afxwin.h))
D:\Program\Microsoft Visual Studio\VC98\MFC\INCLUDE\afxwin.h(2613): error 830: (Info -- Location cited in prior message)
SetIcon(m_hIcon, TRUE); // Set big icon
UartDlg.cpp(296): error 534: (Warning -- Ignoring return value of function 'CWnd::SetIcon(struct HICON__ *, int)' (compare with line 308, file D:\Program\Microsoft Visual Studio\VC98\MFC\INCLUDE\afxwin2.inl))
D:\Program\Microsoft Visual Studio\VC98\MFC\INCLUDE\afxwin2.inl(308): error 830: (Info -- Location cited in prior message)
SetIcon(m_hIcon, FALSE); // Set small icon
UartDlg.cpp(297): error 534: (Warning -- Ignoring return value of function 'CWnd::SetIcon(struct HICON__ *, int)' (compare with line 308, file D:\Program\Microsoft Visual Studio\VC98\MFC\INCLUDE\afxwin2.inl))
D:\Program\Microsoft Visual Studio\VC98\MFC\INCLUDE\afxwin2.inl(308): error 830: (Info -- Location cited in prior message)
((CComboBox*)GetDlgItem(IDC_INI_PORT_NUM))->SetCurSel(0);//设置串口号
UartDlg.cpp(340): error 1774: (Info -- Could use dynamic_cast to downcast polymorphic type 'CWnd')
UartDlg.cpp(340): error 534: (Warning -- Ignoring return value of function 'CComboBox::SetCurSel(int)' (compare with line 712, file D:\Program\Microsoft Visual Studio\VC98\MFC\INCLUDE\afxwin2.inl))
D:\Program\Microsoft Visual Studio\VC98\MFC\INCLUDE\afxwin2.inl(712): error 830: (Info -- Location cited in prior message)
((CComboBox*)GetDlgItem(IDC_INI_BAUD_RATE))->SetCurSel(1);//设置波特率
UartDlg.cpp(341): error 1774: (Info -- Could use dynamic_cast to downcast polymorphic type 'CWnd')
UartDlg.cpp(341): error 534: (Warning -- Ignoring return value of function 'CComboBox::SetCurSel(int)' (compare with line 712, file D:\Program\Microsoft Visual Studio\VC98\MFC\INCLUDE\afxwin2.inl))
D:\Program\Microsoft Visual Studio\VC98\MFC\INCLUDE\afxwin2.inl(712): error 830: (Info -- Location cited in prior message)
((CComboBox*)GetDlgItem(IDC_INI_DATA_BIT))->SetCurSel(4);//设置数据位
UartDlg.cpp(342): error 1774: (Info -- Could use dynamic_cast to downcast polymorphic type 'CWnd')
UartDlg.cpp(342): error 534: (Warning -- Ignoring return value of function 'CComboBox::SetCurSel(int)' (compare with line 712, file D:\Program\Microsoft Visual Studio\VC98\MFC\INCLUDE\afxwin2.inl))
D:\Program\Microsoft Visual Studio\VC98\MFC\INCLUDE\afxwin2.inl(712): error 830: (Info -- Location cited in prior message)
((CComboBox*)GetDlgItem(IDC_INI_CHECK_BIT))->SetCurSel(0);//2 Even parity. 3 Mark parity. 0 No parity. 1 Odd parity. 4 Space parity.
UartDlg.cpp(343): error 1774: (Info -- Could use dynamic_cast to downcast polymorphic type 'CWnd')
UartDlg.cpp(343): error 534: (Warning -- Ignoring return value of function 'CComboBox::SetCurSel(int)' (compare with line 712, file D:\Program\Microsoft Visual Studio\VC98\MFC\INCLUDE\afxwin2.inl))
D:\Program\Microsoft Visual Studio\VC98\MFC\INCLUDE\afxwin2.inl(712): error 830: (Info -- Location cited in prior message)
((CComboBox*)GetDlgItem(IDC_INI_STOP_BIT))->SetCurSel(0);//0=1 stop bit. 1=1.5 stop bits. 2=2 stop bits.
UartDlg.cpp(344): error 1774: (Info -- Could use dynamic_cast to downcast polymorphic type 'CWnd')
UartDlg.cpp(344): error 534: (Warning -- Ignoring return value of function 'CComboBox::SetCurSel(int)' (compare with line 712, file D:\Program\Microsoft Visual Studio\VC98\MFC\INCLUDE\afxwin2.inl))
D:\Program\Microsoft Visual Studio\VC98\MFC\INCLUDE\afxwin2.inl(712): error 830: (Info -- Location cited in prior message)
GetDlgItem(IDC_STATIC_OPEN)->ShowWindow(SW_HIDE);
UartDlg.cpp(383): 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(385): error 1774: (Info -- Could use dynamic_cast to downcast polymorphic type 'CWnd')
UartDlg.cpp(385): error 730: (Info -- Boolean argument to function)
UartDlg.cpp(385): 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(386): error 1774: (Info -- Could use dynamic_cast to downcast polymorphic type 'CWnd')
UartDlg.cpp(386): error 730: (Info -- Boolean argument to function)
UartDlg.cpp(386): 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(387): error 1774: (Info -- Could use dynamic_cast to downcast polymorphic type 'CWnd')
UartDlg.cpp(387): error 730: (Info -- Boolean argument to function)
UartDlg.cpp(387): 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_CTS))->EnableWindow(false);
UartDlg.cpp(389): error 1774: (Info -- Could use dynamic_cast to downcast polymorphic type 'CWnd')
UartDlg.cpp(389): error 730: (Info -- Boolean argument to function)
UartDlg.cpp(389): 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_DSR))->EnableWindow(false);
UartDlg.cpp(390): error 1774: (Info -- Could use dynamic_cast to downcast polymorphic type 'CWnd')
UartDlg.cpp(390): error 730: (Info -- Boolean argument to function)
UartDlg.cpp(390): 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_RING))->EnableWindow(false);
UartDlg.cpp(391): error 1774: (Info -- Could use dynamic_cast to downcast polymorphic type 'CWnd')
UartDlg.cpp(391): error 730: (Info -- Boolean argument to function)
UartDlg.cpp(391): 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_DCD))->EnableWindow(false);
UartDlg.cpp(392): error 1774: (Info -- Could use dynamic_cast to downcast polymorphic type 'CWnd')
UartDlg.cpp(392): error 730: (Info -- Boolean argument to function)
UartDlg.cpp(392): 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_EDIT))->EnableWindow(false);
UartDlg.cpp(394): error 1774: (Info -- Could use dynamic_cast to downcast polymorphic type 'CWnd')
UartDlg.cpp(394): error 730: (Info -- Boolean argument to function)
UartDlg.cpp(394): 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(false);
UartDlg.cpp(395): error 1774: (Info -- Could use dynamic_cast to downcast polymorphic type 'CWnd')
UartDlg.cpp(395): error 730: (Info -- Boolean argument to function)
UartDlg.cpp(395): 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(397): error 1774: (Info -- Could use dynamic_cast to downcast polymorphic type 'CWnd')
UartDlg.cpp(397): error 730: (Info -- Boolean argument to function)
UartDlg.cpp(397): 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(398): error 1774: (Info -- Could use dynamic_cast to downcast polymorphic type 'CWnd')
UartDlg.cpp(398): error 730: (Info -- Boolean argument to function)
UartDlg.cpp(398): 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(399): error 1774: (Info -- Could use dynamic_cast to downcast polymorphic type 'CWnd')
UartDlg.cpp(399): error 730: (Info -- Boolean argument to function)
UartDlg.cpp(399): 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(400): error 1774: (Info -- Could use dynamic_cast to downcast polymorphic type 'CWnd')
UartDlg.cpp(400): error 730: (Info -- Boolean argument to function)
UartDlg.cpp(400): 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(403): error 730: (Info -- Boolean argument to function)
UartDlg.cpp(403): 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(414): error 730: (Info -- Boolean argument to function)
UartDlg.cpp(414): 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)
m_iIniPortNum = ((CComboBox*)GetDlgItem(IDC_INI_PORT_NUM))->GetCurSel();//设置串口号
UartDlg.cpp(417): error 1774: (Info -- Could use dynamic_cast to downcast polymorphic type 'CWnd')
m_iIniBaudRate = ((CComboBox*)GetDlgItem(IDC_INI_BAUD_RATE))->GetCurSel();//设置波特率
UartDlg.cpp(418): error 1774: (Info -- Could use dynamic_cast to downcast polymorphic type 'CWnd')
m_iIniDataBit = ((CComboBox*)GetDlgItem(IDC_INI_DATA_BIT))->GetCurSel();//设置数据位
UartDlg.cpp(419): error 1774: (Info -- Could use dynamic_cast to downcast polymorphic type 'CWnd')
m_iIniCheckBit = ((CComboBox*)GetDlgItem(IDC_INI_CHECK_BIT))->GetCurSel();//2 Even parity. 3 Mark parity. 0 No parity. 1 Odd parity. 4 Space parity.
UartDlg.cpp(420): error 1774: (Info -- Could use dynamic_cast to downcast polymorphic type 'CWnd')
m_iIniStopBit = ((CComboBox*)GetDlgItem(IDC_INI_STOP_BIT))->GetCurSel();//0=1 stop bit. 1=1.5 stop bits. 2=2 stop bits.
UartDlg.cpp(421): error 1774: (Info -- Could use dynamic_cast to downcast polymorphic type 'CWnd')
}
UartDlg.cpp(428): error 744: (Info -- switch statement has no default)
GetDlgItem(IDC_STATIC_OPEN)->ShowWindow(SW_SHOW);
UartDlg.cpp(437): 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_SHOW);
UartDlg.cpp(443): 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)
}
UartDlg.cpp(452): error 744: (Info -- switch statement has no default)
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -