drm: atomic helper: fix W=1 warnings
authorBenjamin Gaignard <benjamin.gaignard@st.com>
Tue, 8 Oct 2019 12:42:54 +0000 (14:42 +0200)
committerBenjamin Gaignard <benjamin.gaignard@st.com>
Thu, 7 Nov 2019 10:08:54 +0000 (11:08 +0100)
commitbf5d837a0a4ced7cc223befc9e76d4ad30697d27
tree0463169ec11cff64cc4d2ab7d7c371b00cd6ce43
parentf76c22ce8fbbd03394eb9e2cd8c490d9ad2a116c
drm: atomic helper: fix W=1 warnings

Few for_each macro set variables that are never used later which led
to generate unused-but-set-variable warnings.
Add (void)(foo) inside the macros to remove these warnings

Signed-off-by: Benjamin Gaignard <benjamin.gaignard@st.com>
Reviewed-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Link: https://patchwork.freedesktop.org/patch/msgid/20191008124254.2144-1-benjamin.gaignard@st.com
include/drm/drm_atomic.h