Changeset 85121 in vbox for trunk/src/VBox/Main
- Timestamp:
- Jul 8, 2020 7:33:26 PM (5 years ago)
- svn:sync-xref-src-repo-rev:
- 139061
- Location:
- trunk/src/VBox/Main
- Files:
-
- 16 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Main/Makefile.kmk
r85007 r85121 1443 1443 '# pragma warning(disable:4005)' \ 1444 1444 '#endif' \ 1445 '#if _MSC_VER >= 1900 /* RT_MSC_VER_VC140 */' \ 1446 '# pragma warning(disable:5039)' \ 1447 '#endif' \ 1445 1448 '' 1446 1449 $(QUIET)$(CAT_EXT) "$1.tmp" >> "$1" -
trunk/src/VBox/Main/cbinding/capiidl.xsl
r82970 r85121 96 96 97 97 #ifdef _WIN32 98 # pragma warning(push) 99 # pragma warning(disable:4668 4255) /* -Wall and windows.h */ 100 # if _MSC_VER >= 1800 /*RT_MSC_VER_VC120*/ 101 # pragma warning(disable:4005) /* sdk/v7.1/include/sal_supp.h(57) : warning C4005: '__useHeader' : macro redefinition */ 98 # ifdef _MSC_VER 99 # pragma warning(push) 100 # pragma warning(disable:4668 4255) /* -Wall and windows.h */ 101 # if _MSC_VER >= 1800 /*RT_MSC_VER_VC120*/ 102 # pragma warning(disable:4005) /* sdk/v7.1/include/sal_supp.h(57) : warning C4005: '__useHeader' : macro redefinition */ 103 # endif 104 # ifdef __cplusplus 105 # if _MSC_VER >= 1900 /*RT_MSC_VER_VC140*/ 106 # pragma warning(disable:5039) /* winbase.h(13179): warning C5039: 'TpSetCallbackCleanupGroup': pointer or reference to potentially throwing function passed to 'extern "C"' function under -EHc. Undefined behavior may occur if this function throws an exception. */ 107 # endif 108 # endif 102 109 # endif 103 110 # undef COBJMACROS -
trunk/src/VBox/Main/glue/initterm.cpp
r82968 r85121 201 201 * Replacement function for the InvokeStub method for the IRundown stub. 202 202 */ 203 static HRESULT STDMETHODCALLTYPE Rundown_InvokeStub(IRpcStubBuffer *pThis, RPCOLEMESSAGE *pMsg, IRpcChannelBuffer *pBuf) 203 static HRESULT STDMETHODCALLTYPE 204 Rundown_InvokeStub(IRpcStubBuffer *pThis, RPCOLEMESSAGE *pMsg, IRpcChannelBuffer *pBuf) RT_NOTHROW_DEF 204 205 { 205 206 /* … … 422 423 { 423 424 void *pv; 424 DECLCALLBACKMEMBER(uint32_t, pfnRegUpdate )(void);425 DECLCALLBACKMEMBER(uint32_t, pfnRegUpdate,(void)); 425 426 } u; 426 427 vrc = RTLdrGetSymbol(hMod, "VbpsUpdateRegistrations", &u.pv); -
trunk/src/VBox/Main/include/DisplayImpl.h
r84740 r85121 410 410 public: 411 411 412 static inti_displayTakeScreenshotEMT(Display *pDisplay, ULONG aScreenId, uint8_t **ppbData, size_t *pcbData,413 uint32_t *pcx, uint32_t *pcy, bool *pfMemFree);412 static DECLCALLBACK(int) i_displayTakeScreenshotEMT(Display *pDisplay, ULONG aScreenId, uint8_t **ppbData, size_t *pcbData, 413 uint32_t *pcx, uint32_t *pcy, bool *pfMemFree); 414 414 415 415 private: 416 static int i_InvalidateAndUpdateEMT(Display *pDisplay, unsigned uId, bool fUpdateAll); 417 static int i_drawToScreenEMT(Display *pDisplay, ULONG aScreenId, BYTE *address, ULONG x, ULONG y, ULONG width, ULONG height); 416 static DECLCALLBACK(int) i_InvalidateAndUpdateEMT(Display *pDisplay, unsigned uId, bool fUpdateAll); 417 static DECLCALLBACK(int) i_drawToScreenEMT(Display *pDisplay, ULONG aScreenId, BYTE *address, ULONG x, ULONG y, 418 ULONG width, ULONG height); 418 419 419 420 void i_updateGuestGraphicsFacility(void); -
trunk/src/VBox/Main/include/GuestDnDPrivate.h
r85018 r85121 953 953 954 954 /** Guest DnD callback function definition. */ 955 typedef DECLCALLBACKPTR(int, PFNGUESTDNDCALLBACK ) (uint32_t uMsg, void *pvParms, size_t cbParms, void *pvUser);955 typedef DECLCALLBACKPTR(int, PFNGUESTDNDCALLBACK,(uint32_t uMsg, void *pvParms, size_t cbParms, void *pvUser)); 956 956 957 957 /** -
trunk/src/VBox/Main/include/HGCMThread.h
r82968 r85121 55 55 * (shouldn't happen). 56 56 */ 57 typedef DECLCALLBACK (int) HGCMMSGCALLBACK(int32_t result, HGCMMsgCore *pMsgCore);57 typedef DECLCALLBACKTYPE(int, FNHGCMMSGCALLBACK,(int32_t result, HGCMMsgCore *pMsgCore)); 58 58 /** Pointer to a message completeion callback function. */ 59 typedef HGCMMSGCALLBACK *PHGCMMSGCALLBACK;59 typedef FNHGCMMSGCALLBACK *PFNHGCMMSGCALLBACK; 60 60 61 61 … … 76 76 77 77 /** Callback function pointer. */ 78 P HGCMMSGCALLBACK m_pfnCallback;78 PFNHGCMMSGCALLBACK m_pfnCallback; 79 79 80 80 /** Next element in a message queue. */ … … 115 115 * @param pvUser User specified thread parameter. 116 116 */ 117 typedef DECLCALLBACK (void) FNHGCMTHREAD(HGCMThread *pThread, void *pvUser);117 typedef DECLCALLBACKTYPE(void, FNHGCMTHREAD,(HGCMThread *pThread, void *pvUser)); 118 118 typedef FNHGCMTHREAD *PFNHGCMTHREAD; 119 119 … … 179 179 * @thread any 180 180 */ 181 int hgcmMsgPost(HGCMMsgCore *pMsg, P HGCMMSGCALLBACK pfnCallback);181 int hgcmMsgPost(HGCMMsgCore *pMsg, PFNHGCMMSGCALLBACK pfnCallback); 182 182 183 183 /** Send a message to HGCM worker thread. -
trunk/src/VBox/Main/include/MachineDebuggerImpl.h
r82968 r85121 141 141 142 142 /** RTLogGetFlags, RTLogGetGroupSettings and RTLogGetDestinations function. */ 143 typedef DECLCALLBACK (int) FNLOGGETSTR(PRTLOGGER, char *, size_t);143 typedef DECLCALLBACKTYPE(int, FNLOGGETSTR,(PRTLOGGER, char *, size_t)); 144 144 /** Function pointer. */ 145 145 typedef FNLOGGETSTR *PFNLOGGETSTR; -
trunk/src/VBox/Main/include/VirtualBoxImpl.h
r83169 r85121 146 146 147 147 #ifdef RT_OS_WINDOWS 148 typedef DECLCALLBACKPTR(HRESULT, SVCHelperClientFunc) 149 (SVCHlpClient *aClient, Progress *aProgress, void *aUser, int *aVrc); 148 typedef DECLCALLBACKPTR(HRESULT, SVCHelperClientFunc,(SVCHlpClient *aClient, Progress *aProgress, void *aUser, int *aVrc)); 150 149 HRESULT i_startSVCHelperClient(bool aPrivileged, 151 150 SVCHelperClientFunc aFunc, -
trunk/src/VBox/Main/src-all/DisplayPNGUtil.cpp
r82968 r85121 33 33 } PNGWriteCtx; 34 34 35 static void PNGAPI png_write_data_fn(png_structp png_ptr, png_bytep p, png_size_t cb) 35 static void PNGAPI png_write_data_fn(png_structp png_ptr, png_bytep p, png_size_t cb) RT_NOTHROW_DEF 36 36 { 37 37 PNGWriteCtx *pCtx = (PNGWriteCtx *)png_get_io_ptr(png_ptr); … … 62 62 } 63 63 64 static void PNGAPI png_output_flush_fn(png_structp png_ptr) 64 static void PNGAPI png_output_flush_fn(png_structp png_ptr) RT_NOTHROW_DEF 65 65 { 66 66 NOREF(png_ptr); … … 144 144 if (info_ptr) 145 145 { 146 #if RT_MSC_PREREQ(RT_MSC_VER_VC140) 147 #pragma warning(push,3) 146 148 if (!setjmp(png_jmpbuf(png_ptr))) 149 #pragma warning(pop) 150 #else 151 if (!setjmp(png_jmpbuf(png_ptr))) 152 #endif 147 153 { 148 154 PNGWriteCtx ctx; -
trunk/src/VBox/Main/src-client/DisplayImpl.cpp
r85015 r85121 1763 1763 } 1764 1764 1765 /* static */1766 intDisplay::i_displayTakeScreenshotEMT(Display *pDisplay, ULONG aScreenId, uint8_t **ppbData, size_t *pcbData,1767 1765 /*static*/ DECLCALLBACK(int) 1766 Display::i_displayTakeScreenshotEMT(Display *pDisplay, ULONG aScreenId, uint8_t **ppbData, size_t *pcbData, 1767 uint32_t *pcx, uint32_t *pcy, bool *pfMemFree) 1768 1768 { 1769 1769 int rc; … … 2147 2147 #endif /* VBOX_WITH_RECORDING */ 2148 2148 2149 int Display::i_drawToScreenEMT(Display *pDisplay, ULONG aScreenId, BYTE *address, 2150 2149 /*static*/ DECLCALLBACK(int) 2150 Display::i_drawToScreenEMT(Display *pDisplay, ULONG aScreenId, BYTE *address, ULONG x, ULONG y, ULONG width, ULONG height) 2151 2151 { 2152 2152 int rc = VINF_SUCCESS; … … 2312 2312 } 2313 2313 2314 intDisplay::i_InvalidateAndUpdateEMT(Display *pDisplay, unsigned uId, bool fUpdateAll)2314 /*static*/ DECLCALLBACK(int) Display::i_InvalidateAndUpdateEMT(Display *pDisplay, unsigned uId, bool fUpdateAll) 2315 2315 { 2316 2316 LogRelFlowFunc(("uId=%d, fUpdateAll %d\n", uId, fUpdateAll)); -
trunk/src/VBox/Main/src-client/HGCMThread.cpp
r82968 r85121 146 146 int MsgAlloc(HGCMMsgCore **pMsg, uint32_t u32MsgId, PFNHGCMNEWMSGALLOC pfnNewMessage); 147 147 int MsgGet(HGCMMsgCore **ppMsg); 148 int MsgPost(HGCMMsgCore *pMsg, P HGCMMSGCALLBACK pfnCallback, bool bWait);148 int MsgPost(HGCMMsgCore *pMsg, PFNHGCMMSGCALLBACK pfnCallback, bool bWait); 149 149 int MsgComplete(HGCMMsgCore *pMsg, int32_t result); 150 150 }; … … 400 400 } 401 401 402 int HGCMThread::MsgPost(HGCMMsgCore *pMsg, P HGCMMSGCALLBACK pfnCallback, bool fWait)402 int HGCMThread::MsgPost(HGCMMsgCore *pMsg, PFNHGCMMSGCALLBACK pfnCallback, bool fWait) 403 403 { 404 404 LogFlow(("HGCMThread::MsgPost: thread = %p, pMsg = %p, pfnCallback = %p\n", this, pMsg, pfnCallback)); … … 694 694 } 695 695 696 DECLINLINE(int) hgcmMsgPostInternal(HGCMMsgCore *pMsg, P HGCMMSGCALLBACK pfnCallback, bool fWait)696 DECLINLINE(int) hgcmMsgPostInternal(HGCMMsgCore *pMsg, PFNHGCMMSGCALLBACK pfnCallback, bool fWait) 697 697 { 698 698 LogFlow(("MAIN::hgcmMsgPostInternal: pMsg = %p, pfnCallback = %p, fWait = %d\n", pMsg, pfnCallback, fWait)); … … 709 709 } 710 710 711 int hgcmMsgPost(HGCMMsgCore *pMsg, P HGCMMSGCALLBACK pfnCallback)711 int hgcmMsgPost(HGCMMsgCore *pMsg, PFNHGCMMSGCALLBACK pfnCallback) 712 712 { 713 713 int rc = hgcmMsgPostInternal(pMsg, pfnCallback, false); -
trunk/src/VBox/Main/src-client/UsbCardReader.cpp
r82968 r85121 595 595 } 596 596 597 static intdrvCardReaderWakeupFunc(PUSBCARDREADER pThis)597 static DECLCALLBACK(int) drvCardReaderWakeupFunc(PUSBCARDREADER pThis) 598 598 { 599 599 NOREF(pThis); -
trunk/src/VBox/Main/src-server/HostVideoInputDeviceImpl.cpp
r82968 r85121 119 119 120 120 /** @todo These typedefs must be in a header. */ 121 typedef DECLCALLBACK (int) FNVBOXHOSTWEBCAMADD(void *pvUser,122 const char *pszName,123 const char *pszPath,124 const char *pszAlias,125 uint64_t *pu64Result);121 typedef DECLCALLBACKTYPE(int, FNVBOXHOSTWEBCAMADD,(void *pvUser, 122 const char *pszName, 123 const char *pszPath, 124 const char *pszAlias, 125 uint64_t *pu64Result)); 126 126 typedef FNVBOXHOSTWEBCAMADD *PFNVBOXHOSTWEBCAMADD; 127 127 128 typedef DECLCALLBACK (int) FNVBOXHOSTWEBCAMLIST(PFNVBOXHOSTWEBCAMADD pfnWebcamAdd,129 void *pvUser,130 uint64_t *pu64WebcamAddResult);128 typedef DECLCALLBACKTYPE(int, FNVBOXHOSTWEBCAMLIST,(PFNVBOXHOSTWEBCAMADD pfnWebcamAdd, 129 void *pvUser, 130 uint64_t *pu64WebcamAddResult)); 131 131 typedef FNVBOXHOSTWEBCAMLIST *PFNVBOXHOSTWEBCAMLIST; 132 132 -
trunk/src/VBox/Main/src-server/VirtualBoxImpl.cpp
r84343 r85121 1844 1844 1845 1845 #ifdef DEBUG 1846 typedef DECLCALLBACKTYPE(void, FNTESTPRINTF,(const char *, ...)); 1846 1847 /** Simple unit test/operation examples for sanitiseMachineFilename(). */ 1847 static unsigned testSanitiseMachineFilename( DECLCALLBACKMEMBER(void, pfnPrintf)(const char *, ...))1848 static unsigned testSanitiseMachineFilename(FNTESTPRINTF *pfnPrintf) 1848 1849 { 1849 1850 unsigned cErrors = 0; -
trunk/src/VBox/Main/src-server/win/svcmain.cpp
r83794 r85121 97 97 98 98 /** Passed to CreateThread to monitor the shutdown event. */ 99 static DWORD WINAPI MonitorProc(void *pv) 99 static DWORD WINAPI MonitorProc(void *pv) RT_NOTHROW_DEF 100 100 { 101 101 CExeModule *p = (CExeModule *)pv; … … 594 594 static BOOL ShutdownBlockReasonCreateAPI(HWND hWnd, LPCWSTR pwszReason) 595 595 { 596 typedef DECLCALLBACKPTR_EX(BOOL, WINAPI, PFNSHUTDOWNBLOCKREASONCREATE,(HWND hWnd, LPCWSTR pwszReason)); 597 598 PFNSHUTDOWNBLOCKREASONCREATE pfn 599 = (PFNSHUTDOWNBLOCKREASONCREATE)GetProcAddress(GetModuleHandle(L"User32.dll"), "ShutdownBlockReasonCreate"); 600 AssertPtr(pfn); 601 596 602 BOOL fResult = FALSE; 597 typedef BOOL(WINAPI *PFNSHUTDOWNBLOCKREASONCREATE)(HWND hWnd, LPCWSTR pwszReason);598 599 PFNSHUTDOWNBLOCKREASONCREATE pfn = (PFNSHUTDOWNBLOCKREASONCREATE)GetProcAddress(600 GetModuleHandle(L"User32.dll"), "ShutdownBlockReasonCreate");601 AssertPtr(pfn);602 603 if (pfn) 603 604 fResult = pfn(hWnd, pwszReason); … … 611 612 static BOOL ShutdownBlockReasonDestroyAPI(HWND hWnd) 612 613 { 614 typedef DECLCALLBACKPTR_EX(BOOL, WINAPI, PFNSHUTDOWNBLOCKREASONDESTROY,(HWND hWnd)); 615 PFNSHUTDOWNBLOCKREASONDESTROY pfn 616 = (PFNSHUTDOWNBLOCKREASONDESTROY)GetProcAddress(GetModuleHandle(L"User32.dll"), "ShutdownBlockReasonDestroy"); 617 AssertPtr(pfn); 618 613 619 BOOL fResult = FALSE; 614 typedef BOOL(WINAPI *PFNSHUTDOWNBLOCKREASONDESTROY)(HWND hWnd);615 616 PFNSHUTDOWNBLOCKREASONDESTROY pfn = (PFNSHUTDOWNBLOCKREASONDESTROY)GetProcAddress(617 GetModuleHandle(L"User32.dll"), "ShutdownBlockReasonDestroy");618 AssertPtr(pfn);619 620 if (pfn) 620 621 fResult = pfn(hWnd); -
trunk/src/VBox/Main/webservice/Makefile.kmk
r84490 r85121 219 219 # -wd4774: string(532): warning C4774: 'sprintf_s' : format string expected in argument 3 is not a string literal 220 220 # -wd4458: stdsoap2.h(2644): warning C4458: declaration of 'type' hides class member 221 # -wd5039: x509v3.h(883): warning C5039: 'OPENSSL_sk_set_cmp_func': pointer or reference to potentially throwing function passed to 'extern "C"' function under -EHc. Undefined behavior may occur if this function throws an exception. 221 222 # soapc-1.cpp(182) : warning C4883: 'soap_getelement': function size suppresses optimizations 222 TEMPLATE_VBOXWEBR3EXE_CXXFLAGS.win = $(TEMPLATE_VBOXR3EXE_CXXFLAGS.win) -wd4774 -wd4458 -wd4883 223 TEMPLATE_VBOXWEBR3EXE_CXXFLAGS.win = $(TEMPLATE_VBOXR3EXE_CXXFLAGS.win) -wd4774 -wd4458 -wd4883 -wd5039 223 224 endif 224 225 … … 389 390 vboxwebsrv_CXXFLAGS.win += -wd4774 # string(532): warning C4774: 'sprintf_s' : format string expected in argument 3 is not a string literal 390 391 vboxwebsrv_CXXFLAGS.win += -wd4458 # stdsoap2.h(2644): warning C4458: declaration of 'type' hides class member 392 vboxwebsrv_CXXFLAGS.win += -wd5039 # x509v3.h(883): warning C5039: 'OPENSSL_sk_set_cmp_func': pointer or reference to potentially throwing function passed to 'extern "C"' function under -EHc. Undefined behavior may occur if this function throws an exception. 391 393 endif 392 394 ifn1of ($(KBUILD_TARGET), win)
Note:
See TracChangeset
for help on using the changeset viewer.