Skip to content
Commit 38b69a2f authored by Vinson Lee's avatar Vinson Lee Committed by Juan A. Suarez Romero
Browse files

r600/sb: Fix constant-logical-operand warning.



sb/sb_bc_parser.cpp:620:27: warning: use of logical '&&' with constant operand [-Wconstant-logical-operand]
        if (cf->bc.op_ptr->flags && FF_GDS)
                                 ^  ~~~~~~
sb/sb_bc_parser.cpp:620:27: note: use '&' for a bitwise operation
        if (cf->bc.op_ptr->flags && FF_GDS)
                                 ^~
                                 &
sb/sb_bc_parser.cpp:620:27: note: remove constant to silence this warning
        if (cf->bc.op_ptr->flags && FF_GDS)
                                ~^~~~~~~~~

Fixes: da977ad9 ("r600/sb: start adding GDS support")
Signed-off-by: default avatarVinson Lee <vlee@freedesktop.org>
Reviewed-by: default avatarDave Airlie <airlied@redhat.com>
(cherry picked from commit cc33621e)
parent b72c90b0
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment