xserver/hw/xfree86/x86emu
Enrico Weigelt, metux IT consult 43f47e8e65 xfree86: x86emu: fix warning on unneccessary abs()
fix warning:

> In file included from ../hw/xfree86/int10/x86emu.c:11:
> ../hw/xfree86/x86emu/prim_ops.c:2478:9: warning: taking the absolute value of unsigned type 'x86emuu32' (aka 'unsigned int') has no effect [-Wabsolute-value]
>     if (abs(div) > 0xff) {
>         ^
> ../hw/xfree86/x86emu/prim_ops.c:2478:9: note: remove the call to 'abs' since unsigned values cannot be negative
>     if (abs(div) > 0xff) {
>         ^~~
> ../hw/xfree86/x86emu/prim_ops.c:2502:9: warning: taking the absolute value of unsigned type 'x86emuu32' (aka 'unsigned int') has no effect [-Wabsolute-value]
>     if (abs(div) > 0xffff) {
>         ^
> ../hw/xfree86/x86emu/prim_ops.c:2502:9: note: remove the call to 'abs' since unsigned values cannot be negative
>     if (abs(div) > 0xffff) {
>         ^~~

Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
Part-of: <https://gitlab.freedesktop.org/xorg/xserver/-/merge_requests/1428>
2024-04-18 01:03:11 +00:00
..
x86emu xfree86: x86emu: fix missing Xfuncproto.h include in debug.h 2024-04-15 20:11:18 +00:00
debug.c x86emu: Teach the debug code about varargs 2018-01-16 16:08:38 -05:00
decode.c Fix spelling/wording issues 2020-07-05 13:07:33 -07:00
fpu.c Introduce a consistent coding style 2012-03-21 13:54:42 -07:00
meson.build Add a Meson build system alongside autotools. 2017-04-26 15:25:27 -07:00
ops.c Replace "the the" with a single "the" in docs & comments 2022-03-31 13:27:57 -07:00
ops2.c Introduce a consistent coding style 2012-03-21 13:54:42 -07:00
prim_ops.c xfree86: x86emu: fix warning on unneccessary abs() 2024-04-18 01:03:11 +00:00
sys.c xfree86: x86emu: drop unused stq_u() 2024-04-18 01:03:11 +00:00
validate.c Introduce a consistent coding style 2012-03-21 13:54:42 -07:00
x86emu.h Introduce a consistent coding style 2012-03-21 13:54:42 -07:00