From: Alan Barrett <a...@netbsd.org> In XGI_GetTVPtrIndex2(), return the correct value through *tempch by using (*tempch)++ instead of *tempch++. Found using clang -Wunused-value.
Signed-off-by: Thomas Klausner <w...@netbsd.org> --- src/vb_setmode.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/vb_setmode.c b/src/vb_setmode.c index b0f64b1..bfcae8b 100755 --- a/src/vb_setmode.c +++ b/src/vb_setmode.c @@ -9502,7 +9502,7 @@ XGI_GetTVPtrIndex2(USHORT * tempbx, UCHAR * tempcl, UCHAR * tempch, if (pVBInfo-> VBType & (VB_XGI301B | VB_XGI302B | VB_XGI301LV | VB_XGI302LV | VB_XGI301C)) - *tempch++; + (*tempch)++; } -- 2.5.0 _______________________________________________ xorg-devel@lists.x.org: X.Org development Archives: http://lists.x.org/archives/xorg-devel Info: http://lists.x.org/mailman/listinfo/xorg-devel