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.WERROR : Warnings Not Treated As Errors

Summary

The compiler was not invoked in a mode where warnings are treated as errors.

Properties

Class Name Warnings Not Treated As Errors
Significance style
Mnemonic BUILD.WERROR
Categories
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.
Availability Available for C and C++.
Enabling Checks for this warning class are disabled by default. To enable them, add the following WARNING_FILTER rule to the project configuration file.
WARNING_FILTER += allow class="Warnings Not Treated As Errors"

Example

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

Notes

This warning is compatible with the Gnu Compiler Collection C/C++ compiler gcc and the Microsoft C/C++ compiler cl. It looks at the command lines passed to the compiler invocations.

For gcc the warning is issued if:

For cl the warning is issued if:

Warning Report Note

A Warning Report for a warning of this class will provide a link to the relevant Parse Details Log. This logging information is available when configuration parameters SEND_HOOK_LOG_TO_HUB and SEND_PARSE_LOG_TO_HUB are both set to Yes (this is their factory setting). If you have set one or both to No, there will be no Parse Details Log and so the link will lead to a page reporting that the log was not found. The warning itself is not affected by the settings of these parameters.

Relevant Configuration File Parameters

The following configuration file parameters affect checks for this warning class.

 

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