Logo
UNICENS V2.3.0-4567
User Manual and API Reference
MISRA-C-2004 Report

Project Information

Total Files:
 130
Total Lines:
 54860
Checked Files:
 130
Checked Lines:
 54860
Total Vialoations:
 0
Suppressed Violations:
 75

List of Suppressions

inc/ucs_dec.h
Line 59:
  Do not define function-like macro: DEC_FKTOP
 [MISRA2004-19_7]
Reason: Is used in arrays and therefore cannot be converted to inline function.
inc/ucs_misc.h
Line 68:
  Do not define function-like macro: MISC_MEM_SET
 [MISRA2004-19_7]
Reason: function-like macros allowed for stdlib and helper functions
Line 70:
  Do not define function-like macro: MISC_MEM_SET
 [MISRA2004-19_7]
Reason: function-like macros allowed for stdlib and helper functions
Line 83:
  Do not define function-like macro: MISC_MEM_CPY
 [MISRA2004-19_7]
Reason: function-like macros allowed for stdlib and helper functions
Line 85:
  Do not define function-like macro: MISC_MEM_CPY
 [MISRA2004-19_7]
Reason: function-like macros allowed for stdlib and helper functions
Line 92:
  Do not define function-like macro: MISC_UNUSED
 [MISRA2004-19_7]
Reason: function-like macros allowed for stdlib and helper functions
Line 95:
  Do not define function-like macro: MISC_HB
 [MISRA2004-19_7]
Reason: function-like macros allowed for stdlib and helper functions
Line 98:
  Do not define function-like macro: MISC_LB
 [MISRA2004-19_7]
Reason: function-like macros allowed for stdlib and helper functions
Line 101:
  Do not define function-like macro: MISC_DECODE_WORD
 [MISRA2004-19_7]
Reason: function-like macros allowed for stdlib and helper functions
Line 105:
  Do not define function-like macro: MISC_DECODE_DWORD
 [MISRA2004-19_7]
Reason: function-like macros allowed for stdlib and helper functions
Line 111:
  Do not define function-like macro: MISC_IS_VALUE_IN_RANGE
 [MISRA2004-19_7]
Reason: function-like macros allowed for stdlib and helper functions
Line 116:
  Do not define function-like macro: MISC_QUADLET_ALGINED_SIZE
 [MISRA2004-19_7]
Reason: function-like macros allowed for stdlib and helper functions
inc/ucs_trace.h
Line 209:
  Do not define function-like macro: TR_ERROR
 [MISRA2004-19_7]
Reason: function-like macros are allowed for tracing
Line 209:
  Macro 'TR_ERROR' was defined improperly
 [MISRA2004-19_4]
Reason: function-like macros are allowed for tracing
Line 210:
  Do not define function-like macro: TR_FAILED_ASSERT
 [MISRA2004-19_7]
Reason: function-like macros are allowed for tracing
Line 210:
  Macro 'TR_FAILED_ASSERT' was defined improperly
 [MISRA2004-19_4]
Reason: function-like macros are allowed for tracing
Line 211:
  Do not define function-like macro: TR_ASSERT
 [MISRA2004-19_7]
Reason: function-like macros are allowed for tracing
Line 211:
  Macro 'TR_ASSERT' was defined improperly
 [MISRA2004-19_4]
Reason: function-like macros are allowed for tracing
Line 212:
  Do not define function-like macro: TR_ERROR_INIC_RESULT
 [MISRA2004-19_7]
Reason: function-like macros are allowed for tracing
Line 216:
  Each instance of parameter: 'info_size' should be enclosed in parentheses
 [MISRA2004-19_10]
Reason: function-like macros are allowed for tracing
Line 218:
  Each instance of parameter: 'info_ptr' should be enclosed in parentheses
 [MISRA2004-19_10]
Reason: function-like macros are allowed for tracing
Line 223:
  Do not define function-like macro: TR_ERROR
 [MISRA2004-19_7]
Reason: function-like macros are allowed for tracing
Line 224:
  Do not define function-like macro: TR_FAILED_ASSERT
 [MISRA2004-19_7]
Reason: function-like macros are allowed for tracing
Line 225:
  Do not define function-like macro: TR_ASSERT
 [MISRA2004-19_7]
Reason: function-like macros are allowed for tracing
Line 226:
  Do not define function-like macro: TR_ERROR_INIC_RESULT
 [MISRA2004-19_7]
Reason: function-like macros are allowed for tracing
Line 230:
  Do not define function-like macro: TR_INFO
 [MISRA2004-19_7]
Reason: function-like macros are allowed for tracing
Line 230:
  Macro 'TR_INFO' was defined improperly
 [MISRA2004-19_4]
Reason: function-like macros are allowed for tracing
Line 233:
  Do not define function-like macro: TR_INFO
 [MISRA2004-19_7]
Reason: function-like macros are allowed for tracing
src/ucs_addr.c
Line 51:
  Global variable 'ADDR_LOCAL_INIC' is being used only in a single function 'Addr_ReplaceLocalAddrApi'
 [MISRA2004-8_7]
Reason: configuration property shall be visible at the top of the file
src/ucs_alm.c
Line 50:
  Global variable 'ALM_GARBAGE_COLLECTOR_INTERVAL' is being used only in a single function 'Alm_StartTimeout'
 [MISRA2004-8_7]
Reason: Value shall be part of the module, not part of a function.
src/ucs_amd.c
Line 49:
  Global variable 'AMD_SRV_PRIO' is being used only in a single function 'Amd_Ctor'
 [MISRA2004-8_7]
Reason: configuration property
src/ucs_ams.c
Line 56:
  Global variable 'AMS_SRV_PRIO' is being used only in a single function 'Ams_Ctor'
 [MISRA2004-8_7]
Reason: configuration property
Line 583:
  Loop-counter is modified within statement
 [MISRA2004-13_6]
Reason: variable is not used as a counter
src/ucs_amspool.c
Line 53:
  Do not define function-like macro: INT_RX
 [MISRA2004-19_7]
Reason: common definition of type cast improves code
Line 54:
  Do not define function-like macro: INT_TX
 [MISRA2004-19_7]
Reason: common definition of type cast improves code
src/ucs_attach.c
Line 51:
  Global variable 'ATS_SRV_PRIO' is being used only in a single function 'Ats_Ctor'
 [MISRA2004-8_7]
Reason: Value shall be part of the module, not part of a function.
Line 59:
  Global variable 'ATS_INIT_TIMEOUT' is being used only in a single function 'Ats_Start'
 [MISRA2004-8_7]
Reason: Value shall be part of the module, not part of a function.
Line 130:
  Global variable 'ats_trans_tab' is being used only in a single function 'Ats_Ctor'
 [MISRA2004-8_7]
Reason: Value shall be part of the module, not part of a function.
src/ucs_diag_fdx.c
Line 72:
  Global variable 'FDX_SRV_PRIO' is being used only in a single function 'Fdx_Ctor'
 [MISRA2004-8_7]
Reason: Value shall be part of the module, not part of a function.
Line 168:
  Global variable 'fdx_trans_tab' is being used only in a single function 'Fdx_StartDiag'
 [MISRA2004-8_7]
Reason: Value shall be part of the module, not part of a function.
src/ucs_diag_hdx.c
Line 75:
  Global variable 'HDX_SRV_PRIO' is being used only in a single function 'Hdx_Ctor'
 [MISRA2004-8_7]
Reason: Value shall be part of the module, not part of a function.
Line 161:
  Global variable 'hdx_trans_tab' is being used only in a single function 'Hdx_Ctor'
 [MISRA2004-8_7]
Reason: Value shall be part of the module, not part of a function.
src/ucs_exc.c
Line 111:
  Global variable 'exc_handler' is being used only in a single function 'Exc_Ctor'
 [MISRA2004-8_7]
Reason: Value shall be part of the module, not part of a function.
Line 1546:
  Do not assign address of an automatic object (reverse_req0_result) to another automatic object of larger scope (res_data)
 [MISRA2004-17_6_b]
Reason: res_data is used only in the same scope as reverse_req0_result
Line 1559:
  Do not assign address of an automatic object (reverse_req1_result) to another automatic object of larger scope (res_data)
 [MISRA2004-17_6_b]
Reason: res_data is used only in the same scope as reverse_req1_result
src/ucs_factory.c
Line 49:
  Do not define function-like macro: FAC_IS_VALID_INT_ADDR
 [MISRA2004-19_7]
Reason: common definition of type cast improves code
src/ucs_fbp.c
Line 84:
  Global variable 'FBP_SRV_PRIO' is being used only in a single function 'Fbp_Ctor'
 [MISRA2004-8_7]
Reason: Value shall be part of the module, not part of a function.
Line 161:
  Global variable 'fbp_trans_tab' is being used only in a single function 'Fbp_Ctor'
 [MISRA2004-8_7]
Reason: Value shall be part of the module, not part of a function.
src/ucs_inic.c
Line 52:
  Global variable 'inic_handler' is being used only in a single function 'Inic_Ctor'
 [MISRA2004-8_7]
Reason: Value shall be part of the module, not part of a function.
src/ucs_jobs.c
Line 51:
  Global variable 'JBS_SRV_PRIO' is being used only in a single function 'Jbs_Ctor'
 [MISRA2004-8_7]
Reason: Value shall be part of the module, not part of a function.
src/ucs_misc.c
Line 63:
  Avoid indexing non-array objects
 [MISRA2004-17_4]
Reason: void pointer required for memset-function signature (stdlib)
Line 80:
  Avoid indexing non-array objects
 [MISRA2004-17_4]
Reason: void pointers required for memcpy-function signature (stdlib)
Line 80:
  Avoid indexing non-array objects
 [MISRA2004-17_4]
Reason: void pointers required for memcpy-function signature (stdlib)
src/ucs_net.c
Line 53:
  Global variable 'NET_SRV_PRIO' is being used only in a single function 'Net_Ctor'
 [MISRA2004-8_7]
Reason: Value shall be part of the module, not part of a function.
src/ucs_netstarter.c
Line 53:
  Global variable 'NTS_NWSTATUS_MASK' is being used only in a single function 'Nts_Ctor'
 [MISRA2004-8_7]
Reason: configuration property
Line 55:
  Global variable 'NTS_AUTOFORCED_NA_TIME' is being used only in a single function 'Nts_Startup'
 [MISRA2004-8_7]
Reason: configuration property
Line 57:
  Global variable 'NTS_STATUS_GUARD_TIME_PERIOD' is being used only in a single function 'Nts_OnJobQResult'
 [MISRA2004-8_7]
Reason: configuration property
Line 59:
  Global variable 'NTS_STATUS_GUARD_TIME_EARLY' is being used only in a single function 'Nts_OnJobQResult'
 [MISRA2004-8_7]
Reason: configuration property
src/ucs_nodedis.c
Line 67:
  Global variable 'ND_SRV_PRIO' is being used only in a single function 'Nd_Ctor'
 [MISRA2004-8_7]
Reason: Value shall be part of the module, not part of a function.
Line 154:
  Global variable 'nd_trans_tab' is being used only in a single function 'Nd_Ctor'
 [MISRA2004-8_7]
Reason: Value shall be part of the module, not part of a function.
src/ucs_nodeobserver.c
Line 54:
  Global variable 'NOBS_SRV_PRIO' is being used only in a single function 'Nobs_Ctor'
 [MISRA2004-8_7]
Reason: configuration property
src/ucs_nsm.c
Line 54:
  Global variable 'NSM_SRV_PRIO' is being used only in a single function 'Nsm_Ctor'
 [MISRA2004-8_7]
Reason: Value shall be part of the module, not part of a function.
src/ucs_pmfifo.c
Line 54:
  Global variable 'FIFO_SRV_PRIO' is being used only in a single function 'Fifo_Ctor'
 [MISRA2004-8_7]
Reason: configuration property
Line 58:
  Global variable 'FIFO_SE_ALL' is being used only in a single function 'Fifo_Cleanup'
 [MISRA2004-8_7]
Reason: configuration property
Line 1109:
  Avoid indexing non-array objects
 [MISRA2004-17_4]
Reason: necessary offset usage
src/ucs_prog.c
Line 78:
  Global variable 'PRG_SRV_PRIO' is being used only in a single function 'Prg_Ctor'
 [MISRA2004-8_7]
Reason: Value shall be part of the module, not part of a function.
Line 162:
  Global variable 'prg_trans_tab' is being used only in a single function 'Prg_Ctor'
 [MISRA2004-8_7]
Reason: Value shall be part of the module, not part of a function.
src/ucs_rsm.c
Line 49:
  Global variable 'RSM_SRV_PRIO' is being used only in a single function 'Rsm_Ctor'
 [MISRA2004-8_7]
Reason: Value shall be part of the module, not part of a function.
src/ucs_rtm.c
Line 49:
  Global variable 'RTM_SRV_PRIO' is being used only in a single function 'Rtm_Ctor'
 [MISRA2004-8_7]
Reason: Value shall be part of the module, not part of a function.
Line 57:
  Global variable 'RTM_JOB_CHECK_INTERVAL' is being used only in a single function 'Rtm_StartTmr4HandlingRoutes'
 [MISRA2004-8_7]
Reason: Value shall be part of the module, not part of a function.
src/ucs_segmentation.c
Line 53:
  Global variable 'SEGM_GC_TIMEOUT' is being used only in a single function 'Segm_Ctor'
 [MISRA2004-8_7]
Reason: intended usage as configuration parameter
src/ucs_supvmode.c
Line 63:
  Global variable 'svm_default_access' is being used only in a single function 'Svm_Ctor'
 [MISRA2004-8_7]
Reason: intended use in a single, the declaration is a configuration and shall be declared explicitly
src/ucs_supvprog.c
Line 52:
  Global variable 'SVP_SRV_PRIO' is being used only in a single function 'Svp_Ctor'
 [MISRA2004-8_7]
Reason: configuration property
Line 54:
  Global variable 'SVP_NWSTATUS_MASK' is being used only in a single function 'Svp_Ctor'
 [MISRA2004-8_7]
Reason: configuration property
src/ucs_timer.c
Line 51:
  Global variable 'TM_SRV_PRIO' is being used only in a single function 'Tm_Ctor'
 [MISRA2004-8_7]
Reason: Value shall be part of the module, not part of a function.