Closed HashidaTKS closed 3 months ago
C26812 was suppressed.
1>C/C++ のコード分析を実行しています...
1>コードを生成中...
1>Sazabi.vcxproj -> C:\work\thinbridge\Chronos.work\D32\ChronosN.exe
C:\work\thinbridge\Chronos.work\fav.h(8): warning C26812: 列挙型 'TYPE' は対象範囲外です。'enum' (Enum.3) より 'enum class' を優先します。
C:\work\thinbridge\Chronos.work\sbcommon.h(909): warning C26812: 列挙型 'AppSettings::MediaAccessPermission' は対象範囲外です。'enum' (Enum.3) より 'enum class' を優先します。
C:\work\thinbridge\Chronos.work\DlgSetting.h(17): warning C26812: 列挙型 'autoresize::ResizeSpecifier' は対象範囲外です。'enum' (Enum.3) より 'enum class' を優先します。
C:\work\thinbridge\Chronos.work\CTabWnd.h(8): warning C26812: 列挙型 'ETabWndNotifyType' は対象範囲外です。'enum' (Enum.3) より 'enum class' を優先します。
C:\work\thinbridge\Chronos.work\BroView.cpp(12): warning C26495: 変数 'CChildView::m_bFindNext' が初期化されていません。メンバー変数は必ず初期化してください (type.6)。
C:\work\thinbridge\Chronos.work\CTabWnd.cpp(289): warning C26819: switch ラベルどうしの間に、注釈の付いていないフォールスルーがあります (es.78)。
C:\work\thinbridge\Chronos.work\CTabWnd.cpp(459): warning C26495: 変数 'CTabWnd::m_ptSrcCursor' が初期化されていません。メンバー変数は必ず初期化してください (type.6)。
1>プロジェクト "Sazabi.vcxproj" のビルドが終了しました。
========== すべて再構築: 1 正常終了、0 失敗、0 スキップ ==========
=========== リビルド は 11:35 で完了し、03:00.551 分 掛かりました ==========
Which issue(s) this PR fixes:
https://github.com/ThinBridge/Chronos/issues/42
What this PR does / why we need it:
Suppressing C26812 warnings for automatically created enums. They are automatically created and we should not change them manually. So they are simply suppressed by
pragma
.How to verify the fixed issue:
The steps to verify:
Expected result:
The C26812 warnings are not displayed at the lines added
pragma
.