diff options
author | 2016-08-25 00:12:03 -0400 | |
---|---|---|
committer | 2016-08-25 00:22:14 -0400 | |
commit | 717e1eb9d2f3d4399f1793773b3c48397c728b43 (patch) | |
tree | 5d1a42c6eb8b3a3a355e657649d91b1268dc4b63 /src/emu/render.cpp | |
parent | 0d08c04009a954a64b7bf4d7be978a744940d721 (diff) |
Change warning flags for Clang build (nw)
-Wno-missing-braces is unfortunately now necessary to avoid errors on almost every single use of the std::array initializer in devfind.h. (Apparently C++14 does make double braces optional for std::array initializers, but clang and GCC's -Wmissing-braces never took that into proper account, which is why GCC may still have it disabled by default.)
Several other Clang-specific warnings have been undisabled; some might perhaps need to be locally reenabled if legacy 3rdparty code or sundry OSD includes happen to disagree with them. The only warning to require any code changes was -Wabsolute-value, which seems to have caught a minor render bug (and nothing more).
Diffstat (limited to 'src/emu/render.cpp')
-rw-r--r-- | src/emu/render.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/emu/render.cpp b/src/emu/render.cpp index 51669bf5320..39018410c2b 100644 --- a/src/emu/render.cpp +++ b/src/emu/render.cpp @@ -1756,8 +1756,8 @@ void render_target::add_container_primitives(render_primitive_list &list, const cliprect.y1 = xform.yoffs + xform.yscale; sect_render_bounds(&cliprect, &m_bounds); - float root_xoffs = root_xform.xoffs + abs(root_xform.xscale - xform.xscale) * 0.5f; - float root_yoffs = root_xform.yoffs + abs(root_xform.yscale - xform.yscale) * 0.5f; + float root_xoffs = root_xform.xoffs + fabsf(root_xform.xscale - xform.xscale) * 0.5f; + float root_yoffs = root_xform.yoffs + fabsf(root_xform.yscale - xform.yscale) * 0.5f; render_bounds root_cliprect; root_cliprect.x0 = root_xoffs; |