mirror of
https://github.com/holub/mame
synced 2025-06-06 12:53:46 +03:00
Merge pull request #1314 from ajrhacker/clang_warnings
Change warning flags for Clang build (nw)
This commit is contained in:
commit
cfbb882720
@ -958,25 +958,17 @@ end
|
||||
buildoptions {
|
||||
"-Wno-cast-align",
|
||||
"-Wno-tautological-compare",
|
||||
"-Wno-dynamic-class-memaccess",
|
||||
"-Wno-unused-value",
|
||||
"-Wno-inline-new-delete",
|
||||
"-Wno-constant-logical-operand",
|
||||
"-Wno-deprecated-register",
|
||||
"-Wno-missing-braces", -- clang is not as permissive as GCC about std::array initialization
|
||||
"-fdiagnostics-show-note-include-stack",
|
||||
}
|
||||
if (version >= 30500) then
|
||||
buildoptions {
|
||||
"-Wno-absolute-value",
|
||||
"-Wno-unknown-warning-option",
|
||||
"-Wno-extern-c-compat",
|
||||
}
|
||||
end
|
||||
if (version >= 70000) then
|
||||
buildoptions {
|
||||
"-Wno-tautological-undefined-compare",
|
||||
}
|
||||
end
|
||||
else
|
||||
if (version < 40900) then
|
||||
print("GCC version 4.9 or later needed")
|
||||
|
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user