lmi
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[lmi] MinGW-w64 gcc-7.2 -Wconversion warning in wx


From: Greg Chicares
Subject: [lmi] MinGW-w64 gcc-7.2 -Wconversion warning in wx
Date: Sat, 3 Mar 2018 01:38:44 +0000
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.5.2

I'll turn this warning off for now with '-Wno-conversion', because
it's triggered here in the version of wx we're currently using:

/opt/lmi/local/include/wx-3.1/wx/gdicmn.h:322:21: error: conversion to 'float' 
from 'int' may alter its value [-Werror=conversion]
         { x = (int)(x*xscale); y = (int)(y*yscale); return *this; }
                     ^
/opt/lmi/local/include/wx-3.1/wx/gdicmn.h:322:42: error: conversion to 'float' 
from 'int' may alter its value [-Werror=conversion]
         { x = (int)(x*xscale); y = (int)(y*yscale); return *this; }
                                          ^

It would be nice to fix that (if it hasn't already been fixed in
a more recent version) because this warning is triggered by some
code in lmi (which I haven't investigated yet).



reply via email to

[Prev in Thread] Current Thread [Next in Thread]