Uploaded image for project: 'IoTivity'
  1. IoTivity
  2. IOT-2268

build warnings in resource/c_common/platform_features.h

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: P3
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: SDK
    • Labels:
    • Found in Version/s:
      1.3
    • Operating System:
      Ubuntu
    • Issue Severity:
      Normal
    • Reproducibility:
      Always (100%)
    • Bugzilla ID:
      None

      Description

      after merging https://gerrit.iotivity.org/gerrit/19559, the following warning is in the build results. please refer the log attached.

       

      build command: scons resource TARGET_OS=linux

       

      resource/src/InProcServerWrapper.cpp: In member function 'virtual OCStackResult OC::InProcServerWrapper::sendResponse(std::shared_ptr<OC::OCResourceResponse>)':
      resource/c_common/platform_features.h:45:28: warning: typedef 'StaticAssertTemp632' locally defined but not used [-Wunused-local-typedefs]
               typedef int OC_CAT(StaticAssertTemp, _LINE_)[2 * !!(condition) - 1]
                                  ^
      resource/c_common/platform_features.h:42:25: note: in definition of macro 'OC_CAT_'
       #  define OC_CAT_(a, b) a ## b
                               ^
      resource/c_common/platform_features.h:45:21: note: in expansion of macro 'OC_CAT'
               typedef int OC_CAT(StaticAssertTemp, _LINE_)[2 * !!(condition) - 1]
                           ^
      resource/src/InProcServerWrapper.cpp:631:13: note: in expansion of macro 'OC_STATIC_ASSERT'
                   OC_STATIC_ASSERT(MAX_HEADER_OPTIONS <= UINT8_MAX,

        Attachments

        # Subject Branch Project Status CR V

          Activity

            People

            • Assignee:
              Lewap Pawel Winogrodzki
              Reporter:
              johyuna Hyuna Jo
            • Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: