KhronosGroup / KhronosGroup/SPIRV-Tools

-Werror: deprecated enum -> enum conversion

Open
#5,783 1 comment 0 reactions 1 assignee Claimed by @ShabbyX View on GitHub
component:diff
Dominant language
C++
Stars
1.4k
Forks
709
Avg merge
1d 22h
Merged PRs (30d)
28

Description

Hello, i'm making this issue to signal that spirv tools cant actually compile using werror due to a deprecated enum conversion:

SPIRV-Tools/tools/diff/diff.cpp: In function ‘std::unique_ptr {anonymous}::load_module(const char*)’:
SPIRV-Tools/tools/diff/diff.cpp:90:54: error: bitwise operation between different enumeration types ‘spvtools::SpirvTools::’ and ‘spv_text_to_binary_options_t’ is deprecated [-Werror=deprecated-enum-enum-conversion]
90 | spvtools::SpirvTools::kDefaultAssembleOption |
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^
91 | SPV_TEXT_TO_BINARY_OPTION_PRESERVE_NUMERIC_IDS);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.