Uploaded image for project: 'Core ReactOS'
  1. Core ReactOS
  2. CORE-10652

__noop used in macro causes unreferenced variable error in ntoskrnl and break build

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • Major
    • None
    • Build System
    • None

    Description

      I'm messing around with NewCC and when I tried to build bootcd the following error popped up:

      D:\Project\reactos-svn\ntoskrnl\cache\pinsup.c(958): error C4189: 'Selected': local variable is initialized but not referenced

      'Selected' is actually referenced once inside a DPRINT macro. However since NDEBUG is undefined, DPRINT is defined as __noop, and the whole statement is ignored by MSVC.

      The general version of DPRINT works fine.

      Original commit for __noop

      Attachments

        1. CcUnpinData.diff
          0.7 kB
        2. CORE-10652.patch
          0.4 kB
        3. debug.h.patch
          1 kB

        Activity

          People

            bug zilla Bug Zilla
            Yuntian Zhang Yuntian Zhang
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated: