Hendricks266

DirectX function calls from hell, part 2 - clang edition

Nov 4th, 2012
178
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. src/winlayer.c:914:53: error: no viable conversion from 'const GUID' (aka 'const _GUID') to 'const GUID *const' (aka 'const _GUID *const')
  2. result = IDirectInputDevice7_SetProperty(lpDID, DIPROP_DEADZONE, &dipdw.diph);
  3. ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  4. c:/MinGW/sdks/dx80_mgw/include\dinput.h:1116:33: note: expanded from macro 'DIPROP_DEADZONE'
  5. #define DIPROP_DEADZONE MAKEDIPROP(5)
  6. ^
  7. c:/MinGW/sdks/dx80_mgw/include\dinput.h:1100:29: note: expanded from macro 'MAKEDIPROP'
  8. #define MAKEDIPROP(prop) (*(const GUID *)(prop))
  9. ^
  10. c:/MinGW/sdks/dx80_mgw/include\dinput.h:1718:75: note: expanded from macro 'IDirectInputDevice7_SetProperty'
  11. #define IDirectInputDevice7_SetProperty(p,a,b) (p)->lpVtbl->SetProperty(p,a,b)
  12. ^
  13. src/winlayer.c:924:53: error: no viable conversion from 'const GUID' (aka 'const _GUID') to 'const GUID *const' (aka 'const _GUID *const')
  14. result = IDirectInputDevice7_SetProperty(lpDID, DIPROP_SATURATION, &dipdw.diph);
  15. ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  16. c:/MinGW/sdks/dx80_mgw/include\dinput.h:1118:33: note: expanded from macro 'DIPROP_SATURATION'
  17. #define DIPROP_SATURATION MAKEDIPROP(6)
  18. ^
  19. c:/MinGW/sdks/dx80_mgw/include\dinput.h:1100:29: note: expanded from macro 'MAKEDIPROP'
  20. #define MAKEDIPROP(prop) (*(const GUID *)(prop))
  21. ^
  22. c:/MinGW/sdks/dx80_mgw/include\dinput.h:1718:75: note: expanded from macro 'IDirectInputDevice7_SetProperty'
  23. #define IDirectInputDevice7_SetProperty(p,a,b) (p)->lpVtbl->SetProperty(p,a,b)
  24. ^
  25. src/winlayer.c:960:53: error: no viable conversion from 'const GUID' (aka 'const _GUID') to 'const GUID *const' (aka 'const _GUID *const')
  26. result = IDirectInputDevice7_GetProperty(lpDID, DIPROP_DEADZONE, &dipdw.diph);
  27. ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  28. c:/MinGW/sdks/dx80_mgw/include\dinput.h:1116:33: note: expanded from macro 'DIPROP_DEADZONE'
  29. #define DIPROP_DEADZONE MAKEDIPROP(5)
  30. ^
  31. c:/MinGW/sdks/dx80_mgw/include\dinput.h:1100:29: note: expanded from macro 'MAKEDIPROP'
  32. #define MAKEDIPROP(prop) (*(const GUID *)(prop))
  33. ^
  34. c:/MinGW/sdks/dx80_mgw/include\dinput.h:1717:75: note: expanded from macro 'IDirectInputDevice7_GetProperty'
  35. #define IDirectInputDevice7_GetProperty(p,a,b) (p)->lpVtbl->GetProperty(p,a,b)
  36. ^
  37. src/winlayer.c:970:53: error: no viable conversion from 'const GUID' (aka 'const _GUID') to 'const GUID *const' (aka 'const _GUID *const')
  38. result = IDirectInputDevice7_GetProperty(lpDID, DIPROP_SATURATION, &dipdw.diph);
  39. ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  40. c:/MinGW/sdks/dx80_mgw/include\dinput.h:1118:33: note: expanded from macro 'DIPROP_SATURATION'
  41. #define DIPROP_SATURATION MAKEDIPROP(6)
  42. ^
  43. c:/MinGW/sdks/dx80_mgw/include\dinput.h:1100:29: note: expanded from macro 'MAKEDIPROP'
  44. #define MAKEDIPROP(prop) (*(const GUID *)(prop))
  45. ^
  46. c:/MinGW/sdks/dx80_mgw/include\dinput.h:1717:75: note: expanded from macro 'IDirectInputDevice7_GetProperty'
  47. #define IDirectInputDevice7_GetProperty(p,a,b) (p)->lpVtbl->GetProperty(p,a,b)
  48. ^
Advertisement
Add Comment
Please, Sign In to add comment