Advertisement
mogorva

compiler warnings

Feb 12th, 2015
215
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.52 KB | None | 0 0
  1. surface.c: In function ‘ddraw_surface_create’:
  2. surface.c:5777:107: warning: passing argument 4 of ‘wined3d_device_reset’ from incompatible pointer type
  3. if (FAILED(hr = wined3d_device_reset(ddraw->wined3d_device,
  4. ^
  5. In file included from ddraw_private.h:39:0,
  6. from surface.c:27:
  7. ../../include/wine/wined3d.h:2235:81: note: expected ‘wined3d_device_reset_cb’ but argument is of type ‘HRESULT (__attribute__((__cdecl__)) *)(struct wined3d_resource *)’
  8. HRESULT __cdecl wined3d_device_reset(struct wined3d_device *device,
  9. ^
  10.  
  11. device.c: In function ‘wined3d_device_reset’:
  12. device.c:4378:13: warning: ISO C90 forbids mixed declarations and code [-Wdeclaration-after-statement]
  13. struct wined3d_texture *texture = wined3d_texture_from_resource(resource);
  14. ^
  15. device.c: In function ‘device_resource_released’:
  16. device.c:4764:17: warning: ISO C90 forbids mixed declarations and code [-Wdeclaration-after-statement]
  17. struct wined3d_texture *texture = wined3d_texture_from_resource(resource);
  18. ^
  19.  
  20.  
  21. context.c: In function ‘context_resource_unloaded’:
  22. context.c:738:5: warning: ISO C90 forbids mixed declarations and code [-Wdeclaration-after-statement]
  23. struct wined3d_texture *texture = wined3d_texture_from_resource(resource);
  24. ^
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement