google/riegeli

base/buffer.h: Type qualifiers ignored on function return type

CodeArno opened this issue · 1 comments

Hi,

Compiling Riegeli in our project setup creates the following GCC warning/error:
riegeli/base/buffer.h:52:3: type qualifiers ignored on function return type [-Werror=ignored-qualifiers]

The reason is that the first const in the line has no effect, since it returns by value:
const size_t size() const { return size_; }

It would be great if you could just merge it - I've created #3, but Googlebot doesn't like me. :)

Thanks,
Arno