Skip to content

Instantly share code, notes, and snippets.

@o11c
Created November 2, 2013 20:23
Show Gist options
  • Save o11c/7283088 to your computer and use it in GitHub Desktop.
Save o11c/7283088 to your computer and use it in GitHub Desktop.
What __attribute__((error)) should accept (neither clang nor gcc generates any call even at -O0).
__attribute__((error("don't call me")))
void dont_call_me();
inline
void wrapper()
{
dont_call_me();
}
void conditional()
{
if (0)
dont_call_me();
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment