diff options
| author | Yilong Li <liyl@google.com> | 2025-02-16 01:25:04 -0800 |
|---|---|---|
| committer | Charles Giessen <46324611+charles-lunarg@users.noreply.github.com> | 2025-02-18 04:02:30 -0600 |
| commit | 8a7c2760f69a13ca333eea3066f5e29423557be0 (patch) | |
| tree | aee93ce009b356ce9219ea5fbeee88f8a3184a57 /scripts/common_codegen.py | |
| parent | b4061dbbe5392947ad4cc176f823972080197ce4 (diff) | |
| download | usermoji-8a7c2760f69a13ca333eea3066f5e29423557be0.tar.xz | |
vkcubepp: Remove implicit casts
1. std::tolower() returns an `int` value. Implicit converting an `int`
to a `char` may trigger compiler warnings (-Wconversion on gcc
and clang).
This change adds an explicit cast to suppress the implicit conversion
warnings.
2. Previously we used `assert(!"....")` to show error messages. This
does an implicit conversion from `const char*` to `bool` which
triggers compiler warnings (-Wconversion).
This change replaces it with `assert(false && "...")` which doesn't
trigger the warning.
Bug: https://fxbug.dev/378964821
Change-Id: I51be6858db558568619d0d2e6bc01a544d3459e4
Diffstat (limited to 'scripts/common_codegen.py')
0 files changed, 0 insertions, 0 deletions
