Hendricks266

clang aSHGetSpecialFolderPathA

Nov 4th, 2012
179
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.75 KB | None | 0 0
  1. src/compat.c:342:24: warning: declaration specifier missing, defaulting to 'int'
  2. typedef bool (WINAPI * aSHGetSpecialFolderPathAtype)(HWND, LPTSTR, int, BOOL);
  3. ~~~~~~ ^
  4. int
  5. src/compat.c:342:15: warning: 'stdcall' only applies to function types; type here is 'int *'
  6. typedef bool (WINAPI * aSHGetSpecialFolderPathAtype)(HWND, LPTSTR, int, BOOL);
  7. ^
  8. c:/mingw/include\windef.h:113:16: note: expanded from macro 'WINAPI'
  9. #define WINAPI __stdcall
  10. ^
  11. c:/mingw/include\windef.h:81:34: note: expanded from macro '__stdcall'
  12. #define __stdcall __attribute__((stdcall))
  13. ^
  14. src/compat.c:342:14: error: function cannot return function type 'int (HWND, LPTSTR, int, BOOL)'
  15. typedef bool (WINAPI * aSHGetSpecialFolderPathAtype)(HWND, LPTSTR, int, BOOL);
  16. ^
  17. src/compat.c:348:5: error: use of undeclared identifier 'aSHGetSpecialFolderPathAtype'; did you mean 'SHGetSpecialFolderPathA'?
  18. aSHGetSpecialFolderPathAtype aSHGetSpecialFolderPathA;
  19. ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
  20. SHGetSpecialFolderPathA
  21. c:/mingw/include\shlobj.h:1476:13: note: 'SHGetSpecialFolderPathA' declared here
  22. BOOL WINAPI SHGetSpecialFolderPathA(HWND,LPSTR,int,BOOL);
  23. ^
  24. src/compat.c:348:33: error: expected ';' after expression
  25. aSHGetSpecialFolderPathAtype aSHGetSpecialFolderPathA;
  26. ^
  27. ;
  28. src/compat.c:348:34: error: use of undeclared identifier 'aSHGetSpecialFolderPathA'; did you mean 'SHGetSpecialFolderPathA'?
  29. aSHGetSpecialFolderPathAtype aSHGetSpecialFolderPathA;
  30. ^~~~~~~~~~~~~~~~~~~~~~~~
  31. SHGetSpecialFolderPathA
  32. c:/mingw/include\shlobj.h:1476:13: note: 'SHGetSpecialFolderPathA' declared here
  33. BOOL WINAPI SHGetSpecialFolderPathA(HWND,LPSTR,int,BOOL);
  34. ^
  35. src/compat.c:362:5: error: use of undeclared identifier 'aSHGetSpecialFolderPathA'; did you mean 'SHGetSpecialFolderPathA'?
  36. aSHGetSpecialFolderPathA = (aSHGetSpecialFolderPathAtype)GetProcAddress(hShell32, "SHGetSpecialFolderPathA");
  37. ^~~~~~~~~~~~~~~~~~~~~~~~
  38. SHGetSpecialFolderPathA
  39. c:/mingw/include\shlobj.h:1476:13: note: 'SHGetSpecialFolderPathA' declared here
  40. BOOL WINAPI SHGetSpecialFolderPathA(HWND,LPSTR,int,BOOL);
  41. ^
  42. src/compat.c:362:33: error: use of undeclared identifier 'aSHGetSpecialFolderPathAtype'; did you mean 'SHGetSpecialFolderPathA'?
  43. aSHGetSpecialFolderPathA = (aSHGetSpecialFolderPathAtype)GetProcAddress(hShell32, "SHGetSpecialFolderPathA");
  44. ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
  45. SHGetSpecialFolderPathA
  46. c:/mingw/include\shlobj.h:1476:13: note: 'SHGetSpecialFolderPathA' declared here
  47. BOOL WINAPI SHGetSpecialFolderPathA(HWND,LPSTR,int,BOOL);
  48. ^
  49. src/compat.c:362:30: error: non-object type 'BOOL (HWND, LPSTR, int, BOOL) __attribute__((stdcall))' is not assignable
  50. aSHGetSpecialFolderPathA = (aSHGetSpecialFolderPathAtype)GetProcAddress(hShell32, "SHGetSpecialFolderPathA");
  51. ~~~~~~~~~~~~~~~~~~~~~~~~ ^
  52. src/compat.c:363:9: error: use of undeclared identifier 'aSHGetSpecialFolderPathA'; did you mean 'SHGetSpecialFolderPathA'?
  53. if (aSHGetSpecialFolderPathA != NULL)
  54. ^~~~~~~~~~~~~~~~~~~~~~~~
  55. SHGetSpecialFolderPathA
  56. c:/mingw/include\shlobj.h:1476:13: note: 'SHGetSpecialFolderPathA' declared here
  57. BOOL WINAPI SHGetSpecialFolderPathA(HWND,LPSTR,int,BOOL);
  58. ^
  59. src/compat.c:364:23: error: implicit declaration of function 'aSHGetSpecialFolderPathA' [-Werror,-Wimplicit-function-declaration]
  60. if (SUCCEEDED(aSHGetSpecialFolderPathA(NULL, appdata, CSIDL_APPDATA, FALSE)))
  61. ^
  62. c:/mingw/include\winerror.h:1869:38: note: expanded from macro 'SUCCEEDED'
  63. #define SUCCEEDED(Status) ((HRESULT)(Status) >= 0)
  64. ^
  65. src/compat.c:364:23: note: did you mean 'SHGetSpecialFolderPathA'?
  66. if (SUCCEEDED(aSHGetSpecialFolderPathA(NULL, appdata, CSIDL_APPDATA, FALSE)))
  67. ^~~~~~~~~~~~~~~~~~~~~~~~
  68. SHGetSpecialFolderPathA
  69. c:/mingw/include\winerror.h:1869:38: note: expanded from macro 'SUCCEEDED'
  70. #define SUCCEEDED(Status) ((HRESULT)(Status) >= 0)
  71. ^
  72. c:/mingw/include\shlobj.h:1476:13: note: 'SHGetSpecialFolderPathA' declared here
  73. BOOL WINAPI SHGetSpecialFolderPathA(HWND,LPSTR,int,BOOL);
  74. ^
  75. src/compat.c:349:11: warning: ISO C90 forbids mixing declarations and code [-pedantic,-Wdeclaration-after-statement]
  76. TCHAR appdata[MAX_PATH];
  77. ^
  78. 3 warnings and 9 errors generated.
  79. Failed building ../eobj_win/compat.o from src/compat.c!
  80. make[1]: *** [../eobj_win/compat.o] Error 1
  81. make: *** [enginelib] Error 2
Advertisement
Add Comment
Please, Sign In to add comment