Created
August 30, 2016 05:44
-
-
Save MadCoder/29ef6a0ec11d7fdc11c17c133221a5f2 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
__attribute__((warn_unused_result)) | |
id my_func(int a, int b, int c); | |
#define my_func(a, b, c) \ | |
_Pragma("clang diagnostic push") \ | |
_Pragma("clang diagnostic error \"-Wunused-result\"") \ | |
my_func(a, b, c) \ | |
_Pragma("clang diagnostic pop") |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment