C and C++


BADMACRO.TMP_MAX_S : Use of TMP_MAX_S

Summary

A use of the TMP_MAX_S preprocessor macro.

Properties

Class Name Use of TMP_MAX_S
Significance style
Mnemonic BADMACRO.TMP_MAX_S
Categories
MisraC2023 MisraC2023:1.4 Emergent language features shall not be used
Misra2012 Misra2012:1.4 Emergent language features shall not be used
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="Use of TMP_MAX_S"

Example

#include <stdio.h>

int f(int numtmp){
  if (numtmp < TMP_MAX_S){  /* 'Use of TMP_MAX_S' warning issued here */
        return numtmp;
    }
    return -1;
}

Relevant Configuration File Parameters

This class is implemented using a BAD_MACRO_* rule set in the general template configuration file.

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