Opened 13 years ago
Closed 13 years ago
#3507 closed Bugs (fixed)
Patch to not to ignore fread and fseek return value
Reported by: | Owned by: | John Maddock | |
---|---|---|---|
Milestone: | Boost 1.41.0 | Component: | regex |
Version: | Boost Development Trunk | Severity: | Problem |
Keywords: | Cc: |
Description
While building the Boost inspect tool from trunk (r56576) , I noticed two warnings from the Boost Regex library:
./../../libs/regex/src/../src/fileiter.cpp: In member function ‘void boost::re_detail::mapfile::lock(char**) const’: ../../../libs/regex/src/../src/fileiter.cpp:263: warning: ignoring return value of ‘size_t fread(void*, size_t, size_t, FILE*)’, declared with attribute warn_unused_result ../../../libs/regex/src/../src/fileiter.cpp:265: warning: ignoring return value of ‘size_t fread(void*, size_t, size_t, FILE*)’, declared with attribute warn_unused_result
Here is patch that does not ignore fread and fseek return values.
Attachments (1)
Change History (3)
by , 13 years ago
Attachment: | boost-regex-fread-return-check-r56576.patch added |
---|
comment:1 by , 13 years ago
I've forgotten to add environment details:
- I'm using GCC 4.3.3 on Linux Ubuntu 9.04 (Intel 64-bit)
Note:
See TracTickets
for help on using tickets.
Patch with fread and fseek return value checks in regex library