KhronosGroup / glslang

Khronos-reference front end for GLSL/ESSL, partial front end for HLSL, and a SPIR-V generator.
Other
3.01k stars 830 forks source link

CMake detects warnings as errors. #3245

Closed SixArne closed 1 year ago

SixArne commented 1 year ago

CMake detects warnings that I mark as errors. Any way to exclude these? I don't want to disable this in my project.

  GenericCodeGen.vcxproj -> C:\Dev\VulkanTemplate\build\_deps\glslang-build\glslang\Debug\GenericCodeGend.lib
  HLSL.vcxproj -> C:\Dev\VulkanTemplate\build\_deps\glslang-build\hlsl\Debug\HLSLd.lib
  OGLCompiler.vcxproj -> C:\Dev\VulkanTemplate\build\_deps\glslang-build\OGLCompilersDLL\Debug\OGLCompilerd.lib
  OSDependent.vcxproj -> C:\Dev\VulkanTemplate\build\_deps\glslang-build\glslang\OSDependent\Windows\Debug\OSDependentd.lib
  cmake_pch.cxx
C:\Dev\VulkanTemplate\build\_deps\glslang-src\glslang\MachineIndependent\SymbolTable.h(279,60): error C2220: the following warning is treated as an error [C:\Dev\VulkanTemplate\build\_deps\glslang-build\glslang\MachineIndependent.vcxproj]
C:\Dev\VulkanTemplate\build\_deps\glslang-src\glslang\MachineIndependent\SymbolTable.h(279,60): warning C4458: declaration of 'name' hides class member [C:\Dev\VulkanTemplate\build\_deps\glslang-build\glslang\MachineIndependent.vcxproj]
C:\Dev\VulkanTemplate\build\_deps\glslang-src\glslang\MachineIndependent\SymbolTable.h(132,20): message : see declaration of 'glslang::TSymbol::name' [C:\Dev\VulkanTemplate\build\_deps\glslang-build\glslang\MachineIndependent.vcxproj]
C:\Dev\VulkanTemplate\build\_deps\glslang-src\glslang\MachineIndependent\ParseHelper.h(141,46): warning C4458: declaration of 'version' hides class member [C:\Dev\VulkanTemplate\build\_deps\glslang-build\glslang\MachineIndependent.vcxproj]
C:\Dev\VulkanTemplate\build\_deps\glslang-src\glslang\MachineIndependent\parseVersions.h(221,9): message : see declaration of 'glslang::TParseVersions::version' [C:\Dev\VulkanTemplate\build\_deps\glslang-build\glslang\MachineIndependent.vcxproj]      
  glfw.vcxproj -> C:\Dev\VulkanTemplate\build\_deps\glfw-build\src\Debug\glfw3.lib
  SPVRemapper.cpp
C:\Dev\VulkanTemplate\build\_deps\glslang-src\SPIRV\SPVRemapper.cpp(315,24): error C2220: the following warning is treated as an error [C:\Dev\VulkanTemplate\build\_deps\glslang-build\SPIRV\SPVRemapper.vcxproj]
C:\Dev\VulkanTemplate\build\_deps\glslang-src\SPIRV\SPVRemapper.cpp(315,24): warning C4457: declaration of 'word' hides function parameter [C:\Dev\VulkanTemplate\build\_deps\glslang-build\SPIRV\SPVRemapper.vcxproj]
C:\Dev\VulkanTemplate\build\_deps\glslang-src\SPIRV\SPVRemapper.cpp(307,52): message : see declaration of 'word' [C:\Dev\VulkanTemplate\build\_deps\glslang-build\SPIRV\SPVRemapper.vcxproj]
  glslang-default-resource-limits.vcxproj -> C:\Dev\VulkanTemplate\build\_deps\glslang-build\glslang\Debug\glslang-default-resource-limitsd.lib
juan-lunarg commented 1 year ago

CMake detects warnings that I mark as errors. Any way to exclude these? I don't want to disable this in my project.

How are you incorporating glslang as part of your project?

arcady-lunarg commented 1 year ago

Not having any further details as to what the actual issue is, I'm going to close this.