Skip to content

CID 1518256: Ignoring number of bytes read #10214

Description

@maskit
35void
36AsyncSignalEventIO::process_event(int flags)
37{
38#if HAVE_EVENTFD
39  uint64_t counter;
  	
CID 1518256 (#1 of 1): Ignoring number of bytes read (CHECKED_RETURN)
1. check_return: read(int, void *, size_t) returns the number of bytes read, but it is ignored.
40  static_cast<void>(read(_fd, &counter, sizeof(uint64_t)));
41#else
42  char dummy[1024];
43  static_cast<void>(read(_fd, &dummy[0], 1024));
44#endif
45}

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions