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

[GitHub] Clang-Cl 12.0.0: 'error: function declaration cannot have variably modified type'

    XMLWordPrintable

    Details

    • Type: Task
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Fix Version/s: 0.4.15
    • Component/s: SDK
    • Labels:

      Description

      Clang 12.0.0 was released on 2021-04-15.
      It seems build-clang-cl-i386 automatically uses it.

      Options:

      • Fix the new errors.
      • (Temporarily) Force v11.x, as done for build-clang-i386.
      • ...

      D:\a\reactos\reactos\src\dll\appcompat\apphelp\hsdb.c(36,1): error: function declaration cannot have variably modified type
      C_ASSERT(offsetof(ShimData, dwMagic) == offsetof(ReactOS_ShimData, dwMagic));
      ^
      sdk\include\psdk\winnt.h(807,38): note: expanded from macro 'C_ASSERT'
      #define C_ASSERT(expr) extern char (*c_assert(void)) [(expr) ? 1 : -1]
                                           ^
      D:\a\reactos\reactos\src\dll\appcompat\apphelp\hsdb.c(37,1): error: function declaration cannot have variably modified type
      C_ASSERT(offsetof(ShimData, dwRosProcessCompatVersion) == offsetof(ReactOS_ShimData, dwRosProcessCompatVersion));
      ^
      sdk\include\psdk\winnt.h(807,38): note: expanded from macro 'C_ASSERT'
      #define C_ASSERT(expr) extern char (*c_assert(void)) [(expr) ? 1 : -1]
                                           ^
      2 errors generated.
      

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                katayama_hirofumi_mz Katayama Hirofumi MZ
                Reporter:
                Serge Gautherie Serge Gautherie
              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: