Skip to content

Conversation

eisenwave
Copy link
Member

The current example has a function f with external linkage. Such a function definition would normally not be marked as unused anyway, because it could be used from another TU.

Using static or inline makes the example meaningful, because functions with internal linkage and inline functions would be marked as unused in practice.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant