Slacker News Slacker News logo featuring a lazy sloth with a folded newspaper hat
  • top
  • new
  • show
  • ask
  • jobs
Library
← Back to context

Comment by JackSlateur

8 months ago

Thank you

So this would be a way which predates' C23's maybe_unused attribute¹

Nice trick

[1] https://en.cppreference.com/w/c/language/attributes/maybe_un...

1 comment

JackSlateur

Reply

naruhodo  7 months ago

C23 includes support for just omitting the parameter name, as with C++.

Slacker News

Product

  • API Reference
  • Hacker News RSS
  • Source on GitHub

Community

  • Support Ukraine
  • Equal Justice Initiative
  • GiveWell Charities