diff options
| author | Ellie Hermaszewska <ellieh@nvidia.com> | 2023-10-26 03:22:01 +0800 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-10-25 12:22:01 -0700 |
| commit | 1a8216b7cd6f272253e7381bc520c65b7dd38b24 (patch) | |
| tree | 9865d2dcf28d7a56a13c665563f8adc0fa96de04 /source/slang/slang-emit-spirv.cpp | |
| parent | e04abb54bc69d90a503852d60a89e8bac7b60ec8 (diff) | |
Fix warnings for gcc 12.3 (#3286)
* Silence a few gcc out of bounds warnings
* Search upwards from executable for prelude directory instead of assuming depth
* comment wording
* Check return values of read and write
* Correct path to vulkan headers in gfx
* Correct diagnostic on missing file in slang-embed
* Do not use absolute path to libraries in test-context.cpp
---------
Co-authored-by: Yong He <yonghe@outlook.com>
Diffstat (limited to 'source/slang/slang-emit-spirv.cpp')
| -rw-r--r-- | source/slang/slang-emit-spirv.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/source/slang/slang-emit-spirv.cpp b/source/slang/slang-emit-spirv.cpp index 3274c3223..0eae87a10 100644 --- a/source/slang/slang-emit-spirv.cpp +++ b/source/slang/slang-emit-spirv.cpp @@ -323,6 +323,7 @@ struct SpvLiteralBits char* dst = (char*)(result.value.getBuffer()); // Copy the text + SLANG_ASSUME(textCount >= 0); memcpy(dst, text.begin(), textCount); // Set terminating 0, and remaining buffer 0s |
