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

NetBSD compile fail #293

Open
neheb opened this issue Jan 13, 2025 · 0 comments
Open

NetBSD compile fail #293

neheb opened this issue Jan 13, 2025 · 0 comments

Comments

@neheb
Copy link
Contributor

neheb commented Jan 13, 2025

2025-01-13T01:16:10.2362063Z poll_kqueue.cc: In member function 'void torrent::PollKQueue::modify(torrent::Event*, short unsigned int, short int)':
2025-01-13T01:16:10.2363254Z poll_kqueue.cc:77:3: error: invalid static_cast from type 'torrent::Event*' to type 'intptr_t {aka long int}'
2025-01-13T01:16:10.2364136Z    EV_SET(itr, event->file_descriptor(), mask, op, 0, 0, event);
2025-01-13T01:16:10.2364630Z    ^
2025-01-13T01:16:10.2399233Z poll_kqueue.cc: In member function 'virtual void torrent::PollKQueue::close(torrent::Event*)':
2025-01-13T01:16:10.2400339Z poll_kqueue.cc:278:23: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
2025-01-13T01:16:10.2401077Z      if (itr->udata == event)
2025-01-13T01:16:10.2401856Z                        ^~~~~
2025-01-13T01:16:10.2402565Z poll_kqueue.cc:279:20: warning: converting to non-pointer type 'long int' from NULL [-Wconversion-null]
2025-01-13T01:16:10.2403498Z        itr->udata = NULL;
2025-01-13T01:16:10.2403852Z                     ^~~~
2025-01-13T01:16:10.2404233Z poll_kqueue.cc: In lambda function:
2025-01-13T01:16:10.2404715Z poll_kqueue.cc:282:90: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
2025-01-13T01:16:10.2405562Z                                     [event](const struct kevent& ke) { return ke.udata == event; }) - m_changes;
2025-01-13T01:16:10.2406027Z                                                                                           ^~~~~
2025-01-13T01:16:10.2412155Z poll_kqueue.cc: In member function 'virtual void torrent::PollKQueue::closed(torrent::Event*)':
2025-01-13T01:16:10.2413209Z poll_kqueue.cc:304:23: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
2025-01-13T01:16:10.2413914Z      if (itr->udata == event)
2025-01-13T01:16:10.2414258Z                        ^~~~~
2025-01-13T01:16:10.2414911Z poll_kqueue.cc:305:20: warning: converting to non-pointer type 'long int' from NULL [-Wconversion-null]
2025-01-13T01:16:10.2415789Z        itr->udata = NULL;
2025-01-13T01:16:10.2416108Z                     ^~~~
2025-01-13T01:16:10.2416439Z poll_kqueue.cc: In lambda function:
2025-01-13T01:16:10.2417087Z poll_kqueue.cc:308:90: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
2025-01-13T01:16:10.2417926Z                                     [event](const struct kevent& ke) { return ke.udata == event; }) - m_changes;
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

No branches or pull requests

1 participant