Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

make the definition of nob_get_current_dir_temp a prototype to appease Clang #20

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

julianstoerig
Copy link

The function declaration of nob_get_current_dir_temp correctly includes void and the definition does not.

I believe this is sufficient as per the standard, however when Including the nob.h definition in a source file, Clang interprets this as nob_get_current_dir_temp missing its prototype.

Adding in the void in the definition as well should be standard compliant and prevent the warning.

@julianstoerig julianstoerig changed the title make nob_get_current_dir_temp definition prototype to appease Clang make thedefinition of nob_get_current_dir_temp a prototype to appease Clang Dec 25, 2024
@julianstoerig julianstoerig changed the title make thedefinition of nob_get_current_dir_temp a prototype to appease Clang make the definition of nob_get_current_dir_temp a prototype to appease Clang Dec 25, 2024
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