[AD] [patch] use of cast expressions as lvalues is deprecated

[ Thread Index | Date Index | More lists.liballeg.org/allegro-developers Archives ]


The attached patch fixes the following warnings I get when compiling CVS
with MinGW GCC 3.4.2:

src/win/wddbmp.c: In function `make_bitmap_from_surface':
src/win/wddbmp.c:333: warning: use of cast expressions as lvalues is deprecated
src/win/wddbmp.c: In function `gfx_directx_destroy_video_bitmap':
src/win/wddbmp.c:509: warning: use of cast expressions as lvalues is deprecated
src/win/wddbmp.c: In function `flip_with_forefront_bitmap':
src/win/wddbmp.c:565: warning: use of cast expressions as lvalues is deprecated
src/win/wddbmp.c:569: warning: use of cast expressions as lvalues is deprecated

src/win/wddwin.c: In function `gfx_directx_show_video_bitmap_win':
src/win/wddwin.c:479: warning: use of cast expressions as lvalues is deprecated

--
Daniel Schlyder
http://bitblaze.com/

Attachment: cast_expr_as_lval_deprecated.diff
Description: Binary data



Mail converted by MHonArc 2.6.19+ http://listengine.tuxfamily.org/