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

Remove register keyword as it has been deprecated since c++17 #475

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

listout
Copy link

@listout listout commented May 12, 2023

Bug encontered on Gentoo with clang 16. Please refer
https://bugs.gentoo.org/898574

@@ -38,6 +38,6 @@ int tcp_wcommit(struct tcp_chan *chan, int);
int tcp_rskip(struct tcp_chan *chan,size_t);
int tcp_chan_has_data(struct tcp_chan *chan);

extern time_t pbs_tcp_timeout;
extern "C" time_t pbs_tcp_timeout;
Copy link

@yselkowitz yselkowitz Sep 9, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This causes an error with C, needs to be something like:

Suggested change
extern "C" time_t pbs_tcp_timeout;
#ifdef __cplusplus
extern "C" time_t pbs_tcp_timeout;
#else
extern time_t pbs_tcp_timeout;
#endif

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.

2 participants