glslang/SPIRV
Dennis Luxen fc89f065e9
Fix compiler warning emitted from GCC8
the following warning gets emitted:

```
In file included from ./Vulkan/glslang/SPIRV/hex_float.h:39,
                 from ./Vulkan/glslang/SPIRV/SpvBuilder.cpp:49:
./Vulkan/glslang/SPIRV/bitutils.h: In instantiation of ‘Dest spvutils::BitwiseCast(Src) [with Dest = spvutils::Float16; Src = short unsigned int]’:
./Vulkan/glslang/SPIRV/hex_float.h:138:47:   required from ‘T spvutils::FloatProxy<T>::getAsFloat() const [with T = spvutils::Float16]’
./Vulkan/glslang/SPIRV/hex_float.h:821:52:   required from here
./Vulkan/glslang/SPIRV/bitutils.h:29:14: warning: ‘void* memcpy(void*, const void*, size_t)’ writing to an object of non-trivially copyable type ‘class spvutils::Float16’; use copy-assignment or copy-initialization instead [-Wclass-memaccess]
   std::memcpy(&dest, &source, sizeof(dest));
   ~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from ./Vulkan/glslang/SPIRV/SpvBuilder.cpp:49:
./Vulkan/glslang/SPIRV/hex_float.h:43:7: note: ‘class spvutils::Float16’ declared here
 class Float16 {
       ^~~~~~~
In file included from ./Vulkan/glslang/SPIRV/hex_float.h:39,
                 from ./Vulkan/glslang/SPIRV/SpvBuilder.cpp:49:
./Vulkan/glslang/SPIRV/bitutils.h: In instantiation of ‘Dest spvutils::BitwiseCast(Src) [with Dest = spvutils::FloatProxy<spvutils::Float16>; Src = short unsigned int]’:
./Vulkan/glslang/SPIRV/hex_float.h:431:28:   required from ‘void spvutils::HexFloat<T, Traits>::setFromSignUnbiasedExponentAndNormalizedSignificand(bool, spvutils::HexFloat<T, Traits>::int_type, spvutils::HexFloat<T, Traits>::uint_type, bool) [with T = spvutils::FloatProxy<spvutils::Float16>; Traits = spvutils::HexFloatTraits<spvutils::FloatProxy<spvutils::Float16> >; spvutils::HexFloat<T, Traits>::int_type = short int; spvutils::HexFloat<T, Traits>::uint_type = short unsigned int]’
./Vulkan/glslang/SPIRV/hex_float.h:633:5:   required from ‘void spvutils::HexFloat<T, Traits>::castTo(other_T&, spvutils::round_direction) [with other_T = spvutils::HexFloat<spvutils::FloatProxy<spvutils::Float16>, spvutils::HexFloatTraits<spvutils::FloatProxy<spvutils::Float16> > >; T = spvutils::FloatProxy<float>; Traits = spvutils::HexFloatTraits<spvutils::FloatProxy<float> >]’
./Vulkan/glslang/SPIRV/hex_float.h:817:39:   required from here
./Vulkan/glslang/SPIRV/bitutils.h:29:14: warning: ‘void* memcpy(void*, const void*, size_t)’ copying an object of non-trivial type ‘class spvutils::FloatProxy<spvutils::Float16>’ from an array of ‘short unsigned int’ [-Wclass-memaccess]
   std::memcpy(&dest, &source, sizeof(dest));
   ~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from ./Vulkan/glslang/SPIRV/SpvBuilder.cpp:49:
./Vulkan/glslang/SPIRV/hex_float.h:115:7: note: ‘class spvutils::FloatProxy<spvutils::Float16>’ declared here
 class FloatProxy {
       ^~~~~~~~~~
```
2018-09-12 10:34:54 +02:00
..
bitutils.h Fix compiler warning emitted from GCC8 2018-09-12 10:34:54 +02:00
CMakeLists.txt Merge pull request #1465 from otakuto/remove-execute-permissions 2018-08-31 08:14:47 -07:00
disassemble.cpp GL_KHR_memory_scope_semantics 2018-09-06 20:36:14 -05:00
disassemble.h Merge pull request #1465 from otakuto/remove-execute-permissions 2018-08-31 08:14:47 -07:00
doc.cpp GL_KHR_memory_scope_semantics 2018-09-06 20:36:14 -05:00
doc.h Non-Functional: Remove unused parts of the disassembler. 2018-03-30 00:11:39 -06:00
GLSL.ext.AMD.h Non-functional: Move to latest headers. 2018-03-02 12:36:02 -07:00
GLSL.ext.EXT.h Fix issues of SPIRV headers 2018-03-02 17:42:37 +08:00
GLSL.ext.KHR.h GL_KHR_memory_scope_semantics 2018-09-06 20:36:14 -05:00
GLSL.ext.NV.h Implement GL_NV_shader_subgroup_partitioned 2018-03-29 22:52:17 -05:00
GLSL.std.450.h Remove execute permissions 2018-08-07 03:16:20 +09:00
GlslangToSpv.cpp SPV: Fix #1487: Only declare AMD int16/half_float extensions when needed. 2018-09-10 18:10:51 -06:00
GlslangToSpv.h SPV: Isolate SPIRV-tools glue to its own file. 2018-08-23 15:17:10 -06:00
hex_float.h Build: Attempt better support for VS 2012. 2017-08-25 21:35:37 -06:00
InReadableOrder.cpp Use unordered_set in ReadableOrderTraverser. 2017-05-11 20:48:34 -04:00
Logger.cpp [VS2010] Remove use of ranged-for loops 2016-05-17 01:20:30 +02:00
Logger.h [VS2010] Remove use of "= default" and "= delete" 2016-05-17 01:20:25 +02:00
spirv.hpp Merge branch 'jeffbolznv-memory_scope_semantics' 2018-09-07 08:58:53 -06:00
SpvBuilder.cpp GL_KHR_memory_scope_semantics 2018-09-06 20:36:14 -05:00
SpvBuilder.h GL_KHR_memory_scope_semantics 2018-09-06 20:36:14 -05:00
spvIR.h Merge pull request #1465 from otakuto/remove-execute-permissions 2018-08-31 08:14:47 -07:00
SpvPostProcess.cpp SPV: Fix #1487: Only declare AMD int16/half_float extensions when needed. 2018-09-10 18:10:51 -06:00
SPVRemapper.cpp Remove execute permissions 2018-08-07 03:16:20 +09:00
SPVRemapper.h Remove execute permissions 2018-08-07 03:16:20 +09:00
SpvTools.cpp Update SpvTools.cpp 2018-08-31 17:36:15 +03:00
SpvTools.h SPV: Add option for controling when the SPIRV-Tools validator is used. 2018-08-23 15:29:08 -06:00