Skip to content

CID 1518256: Ignoring number of bytes read #10214

@maskit

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}

Metadata

Metadata

Assignees

Labels

Type

No type
No fields configured for issues without a type.

Projects

Status

Done

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions