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

implicit function declaration fixes #854

Open
wants to merge 2 commits into
base: 2.1/develop
Choose a base branch
from

Conversation

arkamar
Copy link

@arkamar arkamar commented Dec 31, 2023

This PR fixes two implicit function declaration issues which are problematic with modern compilers like gcc-14. The fix is simple, it is necessary to include header files. See commit messages for more info.

The utilities.h header file is necessary for clamp function, otherwise
compilation fails with implicit function declarations error with moder
compilers. This is baiscally backport of commit f41dd60 ("Compile
warning. clamp implicitely defined.")

Bug: https://bugs.gentoo.org/871294
The time.h header file is needed for strptime function, otherwise modern
compilers fail with implicit function declaration error. Moreover,
getopt.h needs to be included after config.h otherwise global
configuration will not be respected. This can affect time.h as they both
include features.h.

Bug: https://bugs.gentoo.org/879727
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
1 participant