Skip to content

Don't warn if both #[no_mangle] and extern "C" are missing #467

@Barugon

Description

@Barugon

I have a number of functions that I don't want exported through a C ABI but I'm getting warnings. This clutters the output and makes it more difficult to see real issues. I suggest that if a function is missing both #[no_mangle] and export "C" then the code author intends that the function should not be exported and there should be no warning. If just one or the other is missing then that is an actual issue.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions