Uploaded image for project: 'Embedded Software & Tools'
  1. Embedded Software & Tools
  2. EXT_EP-8975

Including stddef.h may disable MISRA diagnostics

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Medium Medium
    • Code Generation Tools
    • CODEGEN-4912
    • Hide
      ARM_16.9.0.LTS
       ARM_18.1.0.LTS
       ARM_18.9.0.STS
      Show
      ARM_16.9.0.LTS  ARM_18.1.0.LTS  ARM_18.9.0.STS
    • Hide
      ARM_18.9.0.STS
       ARM_16.9.9.LTS
       ARM_18.1.4.LTS
      Show
      ARM_18.9.0.STS  ARM_16.9.9.LTS  ARM_18.1.4.LTS
    • Add "#pragma diag_pop" after the inclusion of these files. SInce they're sometimes included from other system include files, it may take some digging to realise that this is necessary.
    • Two include files -- stddef.h and string.h -- each lacked one diag_pop pragma to match the diag_push pragma, which meant that including those files would inadvertently disable certain MISRA warnings.

      Including stddef.h may disable MISRA diagnostics

            syncuser TI User
            syncuser TI User
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved: