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 ocornut
parent d12b1a938e
commit ab6c9d9b12
5 changed files with 5 additions and 0 deletions

View File

@@ -240,6 +240,7 @@ Index of this file:
#pragma GCC diagnostic ignored "-Wformat" // warning: format '%p' expects argument of type 'int'/'void*', but argument X has type 'unsigned int'/'ImGuiWindow*'
#pragma GCC diagnostic ignored "-Wstrict-overflow"
#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 "-Wsign-conversion" // warning: conversion to 'xxxx' from 'xxxx' may change the sign of the result
#endif
//-----------------------------------------------------------------------------