1
0
Fork 0
mirror of https://github.com/ocornut/imgui.git synced 2026-01-29 03:00:05 +00:00

Ignore -Wsign-conversion warnings when building with gcc. (#9192)

Co-authored-by: Tom Seddon <tom@trlinux>
This commit is contained in:
Tom Seddon 2026-01-24 17:21:23 +00:00 committed by GitHub
parent 2a08c87b8c
commit 08c777aeaa
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
5 changed files with 5 additions and 0 deletions

View file

@ -1294,6 +1294,7 @@ IMPLEMENTING SUPPORT for ImGuiBackendFlags_RendererHasTextures:
#pragma GCC diagnostic ignored "-Wstrict-overflow" // warning: assuming signed overflow does not occur when assuming that (X - c) > X is always false
#pragma GCC diagnostic ignored "-Wclass-memaccess" // [__GNUC__ >= 8] warning: 'memset/memcpy' clearing/writing an object of type 'xxxx' with no trivial copy-assignment; use assignment or value-initialization instead
#pragma GCC diagnostic ignored "-Wcast-qual" // warning: cast from type 'const xxxx *' to type 'xxxx *' casts away qualifiers
#pragma GCC diagnostic ignored "-Wsign-conversion" // warning: conversion to 'xxxx' from 'xxxx' may change the sign of the result
#endif
// Debug options