VirtualBox

Changeset 90450 in vbox for trunk


Ignore:
Timestamp:
Jul 31, 2021 1:17:59 PM (3 years ago)
Author:
vboxsync
Message:

iprt/cdefs.h: DECL_CHECK_RETURN for Visual C++ (require /analyze to do anything). bugref:6695

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/include/iprt/cdefs.h

    r90444 r90450  
    15281528 *   RTR3DECL(DECL_CHECK_RETURN(int)) MayReturnInfoStatus(void);
    15291529 * @endcode
    1530  * @todo Visual C++: check _Check_return_ from SAL.
    15311530 */
    15321531#if RT_GNUC_PREREQ(3, 4)
    15331532# define DECL_CHECK_RETURN(a_RetType)  __attribute__((warn_unused_result)) a_RetType
     1533#elif defined(_MSC_VER)
     1534# define DECL_CHECK_RETURN(a_RetType)  __declspec("SAL_checkReturn") a_RetType
    15341535#else
    15351536# define DECL_CHECK_RETURN(a_RetType)  a_RetType
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette