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

[PATCH] (partial) MSVC build is broken

    XMLWordPrintable

Details

    • Bug
    • Resolution: Duplicate
    • Major
    • None
    • None
    • None

    Description

      MSVC build is broken because of warnings caused by unused variables.
      When trying to build solution generated with "configure VSSolution" with MSVS 2015 following errors occur:
      ...
      984>atapi.vcxproj -> C:/Work/src/reactos/output-VS-i386/msvc_pdb/Debug/atapi.pdb (Full PDB)
      986>c:\Work\src\reactos\drivers\filesystems\ext2\src\init.c(113): error C4189: 'i': local variable is initialized but not referenced
      986>c:\Work\src\reactos\drivers\filesystems\ext2\src\init.c(336): warning C4267: '=': conversion from 'size_t' to 'USHORT', possible loss of data
      986>c:\Work\src\reactos\drivers\filesystems\ext2\src\init.c(359): warning C4267: '=': conversion from 'size_t' to 'USHORT', possible loss of data
      986>c:\Work\src\reactos\drivers\filesystems\ext2\src\init.c(383): warning C4267: '=': conversion from 'size_t' to 'USHORT', possible loss of data
      986>c:\Work\src\reactos\drivers\filesystems\ext2\src\init.c(302): error C4189: 'Ext3ForceWriting': local variable is initialized but not referenced
      986>c:\Work\src\reactos\drivers\filesystems\ext2\src\init.c(303): error C4189: 'AutoMount': local variable is initialized but not referenced
      986>c:\Work\src\reactos\drivers\filesystems\ext2\src\init.c(301): error C4189: 'CheckingBitmap': local variable is initialized but not referenced
      986>c:\Work\src\reactos\drivers\filesystems\ext2\src\init.c(300): error C4189: 'WritingSupport': local variable is initialized but not referenced
      985>nls_cp1255.c
      ...
      986>nls_ascii.c
      986>c:\Work\src\reactos\drivers\filesystems\ext2\src\ext4\ext4_extents.c(2201): error C4189: 'sb': local variable is initialized but not referenced
      985>nls_iso8859-9.c
      ...

      994>------ Rebuild All started: Project: runtmchk (sdk\lib\runtmchk\runtmchk), Configuration: Debug Win32 ------
      985>C:\Program Files (x86)\Microsoft Visual Studio\VS15Preview\Common7\IDE\VC\bin\CL.exe /c /I"C:\Work\src\reactos\output-VS-i386\drivers\filesystems\reiserfs" /Ic:\Work\src\reactos\drivers\filesystems\reiserfs /Ic:\Work\src\reactos\sdk\include /Ic:\Work\src\reactos\sdk\include\psdk /Ic:\Work\src\reactos\sdk\include\dxsdk /I"C:\Work\src\reactos\output-VS-i386\sdk\include" /I"C:\Work\src\reactos\output-VS-i386\sdk\include\psdk" /I"C:\Work\src\reactos\output-VS-i386\sdk\include\dxsdk" /I"C:\Work\src\reactos\output-VS-i386\sdk\include\ddk" /I"C:\Work\src\reactos\output-VS-i386\sdk\include\reactos" /Ic:\Work\src\reactos\sdk\include\crt /Ic:\Work\src\reactos\sdk\include\ddk /Ic:\Work\src\reactos\sdk\include\ndk /Ic:\Work\src\reactos\sdk\include\reactos /Ic:\Work\src\reactos\sdk\include\reactos\libs /Ic:\Work\src\reactos\sdk\include\drivers /Ic:\Work\src\reactos\drivers\filesystems\reiserfs\inc /Zi /nologo /W3 /WX- /MP /Od /Ob0 /Oy- /D _REACTOS_ /D DBG=1 /D SEH_ENABLE_TRACE /D _WINKD=1 /D WINVER=0x502 /D WIN32_IE=0x600 /D _WIN32_WINNT=0x502 /D _WIN32_WINDOWS=0x502 /D _SETUPAPI_VER=0x502 /D _M_IX86 /D _X86 /D _i386_ /D i386 /D USE_COMPILER_EXCEPTIONS /D USE_32BIT_TIME_T /D WIN32 /D _WINDOWS /D inline=inline /D __STDC=1 /D LANGUAGE_EN_US /D __KERNEL_ /D "CMAKE_INTDIR=\"Debug\"" /D reiserfs_EXPORTS /D _WINDLL /X /Gm- /GS- /Gy /arch:IA32 /fp:precise /hotpatch /Zc:wchar_t /Zc:forScope /Zc:inline /GR- /Yu"C:\Work\src\reactos\output-VS-i386\drivers\filesystems\reiserfs\reiserfs.pch" /Fp"C:\Work\src\reactos\output-VS-i386\drivers\filesystems\reiserfs\reiserfs.pch" /Fo"reiserfs.dir\Debug\/src/rfsd.c.obj" /Fd"reiserfs.dir\Debug\vc140.pdb" /Gd /TC /wd4244 /wd4290 /wd4800 /wd4200 /wd4214 /wd4018 /wd4189 /wd4142 /wd4101 /FI"C:\Work\src\reactos\output-VS-i386\drivers\filesystems\reiserfs\reiserfs.pch" /analyze- /Zl /errorReport:prompt /we4013 /we4020 /we4022 /we4047 /we4098 /we4113 /we4129 /we4163 /we4229 /we4700 /we4603 /we4716 /we4189 /EHs-c- /Zc:threadSafeInit- /w14115 c:\Work\src\reactos\drivers\filesystems\reiserfs\src\rfsd.c
      986>memory.c
      993>Building Custom Rule c:/Work/src/reactos/base/shell/rshell/CMakeLists.txt
      986>c:\Work\src\reactos\drivers\filesystems\ext2\src\fsctl.c(1399): error C4189: 'MainResourceAcquired': local variable is initialized but not referenced
      986>misc.c
      986>nls.c
      993>CMake does not need to re-run because C:\Work\src\reactos\output-VS-i386\base\shell\rshell\CMakeFiles\generate.stamp is up-to-date.
      993>Generating rshell.def, rshell_stubs.c
      993>C:\Program Files (x86)\Microsoft Visual Studio\VS15Preview\Common7\IDE\VC\bin\CL.exe /c /I"C:\Work\src\reactos\output-VS-i386\base\shell\rshell" /Ic:\Work\src\reactos\base\shell\rshell /Ic:\Work\src\reactos\sdk\include /Ic:\Work\src\reactos\sdk\include\psdk /Ic:\Work\src\reactos\sdk\include\dxsdk /I"C:\Work\src\reactos\output-VS-i386\sdk\include" /I"C:\Work\src\reactos\output-VS-i386\sdk\include\psdk" /I"C:\Work\src\reactos\output-VS-i386\sdk\include\dxsdk" /I"C:\Work\src\reactos\output-VS-i386\sdk\include\ddk" /I"C:\Work\src\reactos\output-VS-i386\sdk\include\reactos" /Ic:\Work\src\reactos\sdk\include\crt /Ic:\Work\src\reactos\sdk\include\ddk /Ic:\Work\src\reactos\sdk\include\ndk /Ic:\Work\src\reactos\sdk\include\reactos /Ic:\Work\src\reactos\sdk\include\reactos\libs /Ic:\Work\src\reactos\sdk\lib\atl /Ic:\Work\src\reactos\dll\win32\shell32\shellmenu /Zi /nologo /W3 /WX- /MP /Od /Ob0 /Oy- /D UNICODE /D UNICODE /D _DLL /D __USE_CRTIMP /D __REACTOS_ /D DBG=1 /D SEH_ENABLE_TRACE /D _WINKD=1 /D WINVER=0x502 /D WIN32_IE=0x600 /D _WIN32_WINNT=0x502 /D _WIN32_WINDOWS=0x502 /D _SETUPAPI_VER=0x502 /D _M_IX86 /D _X86 /D _i386_ /D i386 /D USE_COMPILER_EXCEPTIONS /D USE_32BIT_TIME_T /D WIN32 /D _WINDOWS /D inline=inline /D __STDC_=1 /D LANGUAGE_EN_US /D "CMAKE_INTDIR=\"Debug\"" /D rshell_EXPORTS /D _WINDLL /D _UNICODE /D UNICODE /X /Gm- /GS- /Gy /arch:IA32 /fp:precise /hotpatch /Zc:wchar_t /Zc:forScope /Zc:inline /GR- /Fo"rshell.dir\Debug
      " /Fd"rshell.dir\Debug\vc140.pdb" /Gd /TP /wd4244 /wd4290 /wd4800 /wd4200 /wd4214 /wd4018 /analyze- /Zl /errorReport:prompt /we4013 /we4020 /we4022 /we4047 /we4098 /we4113 /we4129 /we4163 /we4229 /we4700 /we4603 /we4716 /we4189 /EHs-c- /Zc:threadSafeInit- /w14115 c:\Work\src\reactos\base\shell\rshell\misc.cpp
      985>rfsd.c
      986>pnp.c
      986>c:\Work\src\reactos\drivers\filesystems\ext2\src\memory.c(3276): error C4189: 'wake': local variable is initialized but not referenced
      986>rbtree.c
      986>read.c
      ... etc.

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              TechPriest TechPriest
              Votes:
              4 Vote for this issue
              Watchers:
              7 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: