From 6e8579fc144f1d59a75aabf3740470d3e3739a1b Mon Sep 17 00:00:00 2001 From: Sergej Reich Date: Sat, 7 May 2016 17:57:13 +0200 Subject: [PATCH] Ignore implicit conversion warnings --- imgui.cpp | 2 ++ imgui_demo.cpp | 2 ++ imgui_draw.cpp | 2 ++ 3 files changed, 6 insertions(+) diff --git a/imgui.cpp b/imgui.cpp index b982a71e..dffa1356 100644 --- a/imgui.cpp +++ b/imgui.cpp @@ -625,6 +625,8 @@ #pragma GCC diagnostic ignored "-Wunused-function" // warning: 'xxxx' defined but not used #pragma GCC diagnostic ignored "-Wint-to-pointer-cast" // warning: cast to pointer from integer of different size #pragma GCC diagnostic ignored "-Wformat" // warning: format '%p' expects argument of type 'void*', but argument 6 has type 'ImGuiWindow*' +#pragma GCC diagnostic ignored "-Wdouble-promotion" // warning: implicit conversion from 'float' to 'double' when passing argument to function +#pragma GCC diagnostic ignored "-Wconversion" // warning: conversion to 'xxxx' from 'xxxx' may alter its value #endif //------------------------------------------------------------------------- diff --git a/imgui_demo.cpp b/imgui_demo.cpp index 894f4676..c19e2b5b 100644 --- a/imgui_demo.cpp +++ b/imgui_demo.cpp @@ -35,6 +35,8 @@ #ifdef __GNUC__ #pragma GCC diagnostic ignored "-Wint-to-pointer-cast" // warning: cast to pointer from integer of different size #pragma GCC diagnostic ignored "-Wformat-security" // warning : format string is not a string literal (potentially insecure) +#pragma GCC diagnostic ignored "-Wdouble-promotion" // warning: implicit conversion from 'float' to 'double' when passing argument to function +#pragma GCC diagnostic ignored "-Wconversion" // warning: conversion to 'xxxx' from 'xxxx' may alter its value #endif // Play it nice with Windows users. Notepad in 2015 still doesn't display text data with Unix-style \n. diff --git a/imgui_draw.cpp b/imgui_draw.cpp index 8bfdaa78..5fcdc83c 100644 --- a/imgui_draw.cpp +++ b/imgui_draw.cpp @@ -41,6 +41,8 @@ #endif #ifdef __GNUC__ #pragma GCC diagnostic ignored "-Wunused-function" // warning: 'xxxx' defined but not used +#pragma GCC diagnostic ignored "-Wdouble-promotion" // warning: implicit conversion from 'float' to 'double' when passing argument to function +#pragma GCC diagnostic ignored "-Wconversion" // warning: conversion to 'xxxx' from 'xxxx' may alter its value #endif //-------------------------------------------------------------------------