-
Notifications
You must be signed in to change notification settings - Fork 27
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
Conflicting declarations of variable ipc_pollfunc_ptr #7
Labels
Comments
On Tue, Dec 20, 2016 at 12:37:16AM -0800, wferi wrote:
with `nfds_t` being `unsigned long int`.
It is unsigned int:
include/lha_internal.h:125 typedef unsigned int nfds_t;
Looking through the history couldn't find that it ever was long.
|
Ah, I didn't check. Good to know that it isn't causing problems now. Why don't you use the same type name to exclude any possibility of conflict? |
On Tue, Dec 20, 2016 at 03:49:27PM -0800, wferi wrote:
Ah, I didn't check. Good to know that it isn't causing problems now. Why don't you use the same type name to exclude any possibility of conflict?
No idea, haven't been around when this type got introduced. But,
as mentioned in the previous comment, it has never been "long
unsigned", so I'm not sure how it could have ever caused an issue.
|
The problem is the typedef provided by the system
and it wins, because the typedef in |
Yes, you're right. Fixed now. Thanks for reporting and persisting!
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Quoting a Debian bug report:
While building the package using our research compiler infrastructure we
noticed the following conflicting declarations:
./lib/clplumbing/ipcsocket.c:extern int (*ipc_pollfunc_ptr)(struct pollfd *, nfds_t, int);
./lib/clplumbing/ocf_ipc.c:int (*ipc_pollfunc_ptr)(struct pollfd*, unsigned int, int)
with
nfds_t
beingunsigned long int
. This may cause undefined behaviour ifvalues larger than
UINT_MAX
are passed to*ipc_pollfunc_ptr
.The text was updated successfully, but these errors were encountered: