A flaw reported by Flawfinder, but I don't think it makes sense
问题 The question is specific to a pattern that Flawfinder reports: The snippet unsigned char child_report; ... auto readlen = read(pipefd[0], (void *) &child_report, sizeof(child_report)); if(readlen == -1 || readlen != sizeof(child_report)) { _ret.failure = execute_result::PREIO ; // set some flags to report to the caller close(pipefd[0]); return _ret; } ... int sec_read = read(pipefd[0], (void *) &child_report, sizeof(child_report)); child_report = 0; // we are not using the read data at all //