JavaScript is not currently enabled, but is required for full CodeSonar manual search and browse functionality.

If you are viewing this file in your hub's Web GUI, enable JavaScript in your browser: you will also need it for GUI functionality.

If you opened this file directly from disk, your browser may be directly suppressing JavaScript functionality: certain browsers perform this suppression on local files (but not files delivered by web servers) for security reasons.

CodeSonar® 9.2p0 CONFIDENTIAL CodeSecure Inc
C and C++


BUILD.WALL : コンパイラで全てのワーニングを有効にしていない

要旨

全てのワーニングを有効せずにコンパイラが実行されています。

プロパティ

クラス名 Not All Warnings Are Enabled
日本語クラス名 コンパイラで全てのワーニングを有効にしていない
クラス分類 スタイル (style)
ニーモニック BUILD.WALL
カテゴリー
MisraC2025 MisraC2025:1.1 The program shall contain no violations of the standard C syntax and constraints, and shall not exceed the implementation's translation limits
MisraC2023 MisraC2023:1.1 The program shall contain no violations of the standard C syntax and constraints, and shall not exceed the implementation's translation limits
Misra2012 Misra2012:1.1 The program shall contain no violations of the standard C syntax and constraints, and shall not exceed the implementation's translation limits
AUTOSARC++14 AUTOSARC++14:A1-1-2 A warning level of the compilation process shall be set in compliance with project policies.
MisraC++2023 MisraC++2023:4.1.1 A program shall conform to ISO/IEC 14882:2017 (C++17)
CWE CWE:1076 Insufficient Adherence to Expected Conventions
  CWE:1127 Compilation with Insufficient Warnings or Errors
CERT-C CERT-C:MSC00-C Compile cleanly at high warning levels
JSF++ JSF++:218 Compiler warning levels will be set in compliance with project policies.
POW10 POW10:10 Compile with all warnings enabled, and use one or more source code analyzers.
JPL JPL:2 Compile with all warnings enabled; use static source code analyzers.
対応言語 C および C++ で利用可能です。
有効/無効設定 このワーニングクラスのチェックはデフォルトで無効になっています。チェックを有効にするにはプロジェクト設定ファイル (configuration file)に以下の WARNING_FILTER ルールを追加してください。
WARNING_FILTER += allow class="Not All Warnings Are Enabled"

// Warning issued here at the beginning of the file because -Wall was
// not used on the compilation command line.

注釈

このワーニングは、各種の Gnu C/C++ コンパイラ gcc および Microsoft C/C++ コンパイラ cl に対応しており、コンパイラ起動時に渡されたコマンドラインをチェックしています。

gcc の場合、以下の時にワーニングが検出されます。

cl の場合、以下の時にワーニングが検出されます。

関連のある設定ファイルパラメータ

設定ファイルの以下のパラメータがこのワーニングクラスのチェックに影響します。

 

To report problems with this documentation, please visit https://support.codesecure.com/.