[Low Priority] Build warnings under gcc/g++ version 5.4 (Ubuntu 16.04) #716

Open
opened 2026-10-05 04:40:22 +02:00 by adam · 0 comments
Owner

Getting some warnings that don't show up in older versions. From git master at https://github.com/znc/znc/commit/56620af107921707062b3eb8089274979d78f278.

Building core object main...
src/main.cpp: In member function ‘virtual bool CSignalHandler::CSignalHandlerMonitorFD::FDsThatTriggered(const std::map<int, short int>&)’:
src/main.cpp:176:54: warning: ignoring return value of ‘ssize_t read(int, void*, size_t)’, declared with attribute warn_unused_result [-Wunused-result]
                     read(it.first, &sig, sizeof(sig));
                                                      ^

--- Want to back this issue? **[Post a bounty on it!](https://www.bountysource.com/issues/36035500-low-priority-build-warnings-under-gcc-g-version-5-4-ubuntu-16-04?utm_campaign=plugin&utm_content=tracker%2F1759&utm_medium=issues&utm_source=github)** We accept bounties via [Bountysource](https://www.bountysource.com/?utm_campaign=plugin&utm_content=tracker%2F1759&utm_medium=issues&utm_source=github).
Getting some warnings that don't show up in older versions. From git master at https://github.com/znc/znc/commit/56620af107921707062b3eb8089274979d78f278. ``` Building core object main... src/main.cpp: In member function ‘virtual bool CSignalHandler::CSignalHandlerMonitorFD::FDsThatTriggered(const std::map<int, short int>&)’: src/main.cpp:176:54: warning: ignoring return value of ‘ssize_t read(int, void*, size_t)’, declared with attribute warn_unused_result [-Wunused-result] read(it.first, &sig, sizeof(sig)); ^ ``` ## <bountysource-plugin> --- Want to back this issue? **[Post a bounty on it!](https://www.bountysource.com/issues/36035500-low-priority-build-warnings-under-gcc-g-version-5-4-ubuntu-16-04?utm_campaign=plugin&utm_content=tracker%2F1759&utm_medium=issues&utm_source=github)** We accept bounties via [Bountysource](https://www.bountysource.com/?utm_campaign=plugin&utm_content=tracker%2F1759&utm_medium=issues&utm_source=github). </bountysource-plugin> <!-- github-sync-id:165630299 -->
Sign in to join this conversation.
No labels
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: adam/znc#716