[Webkit-unassigned] [Bug 79194] [EFL] Build warning: Fix warn_unused_result warnings

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Tue Mar 6 04:42:53 PST 2012


https://bugs.webkit.org/show_bug.cgi?id=79194





--- Comment #5 from Raphael Kubo da Costa <kubo at profusion.mobi>  2012-03-06 04:42:53 PST ---
(In reply to comment #4)
> How about the below?
> 
> -    fread(result->m_buffer.data(), 1, fileStat.st_size, file);
> +    const size_t bytesRead = fread(result->m_buffer.data(), 1, fileStat.st_size, file);
>      fclose(file);
> 
> -    return result.release();
> +    return bytesRead == static_cast<unsigned>(fileStat.st_size) ? result.release() : 0;

That's OK too.

-- 
Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.



More information about the webkit-unassigned mailing list