Uploaded image for project: 'Apache HAWQ'
  1. Apache HAWQ
  2. HAWQ-1423

cmock framework does not recognize __MAYBE_UNUSED.

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • 2.3.0.0-incubating
    • Build
    • None

    Description

      This bug only exists on MacOS.

      Reproduce Steps:

      1. ./configure 
      2. make -j8 
      3. cd src/backend
      4. make unittest-check
      

      Build log:

      ../../../../../src/test/unit/mock/backend/libpq/be-secure_mock.c:174:2: error: void function 'report_commerror'
            should not return a value [-Wreturn-type]
              return (__MAYBE_UNUSED) mock();
              ^      ~~~~~~~~~~~~~~~~~~~~~~~
      1 error generated.
      make[4]: *** [../../../../../src/test/unit/mock/backend/libpq/be-secure_mock.o] Error 1
      make[3]: *** [mockup-phony] Error 2
      make[2]: *** [unittest-check] Error 2
      make[1]: *** [unittest-check] Error 2
      make: *** [unittest-check] Error 2
      

      Attachments

        Issue Links

          Activity

            People

              Paul Guo Paul Guo
              mli Ming Li
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: