master branch does not compile at least with gcc-11

Summary

Does not compile with gcc-11 -- several mismatches declarations for buffer argument sizes between header and implementation.

Steps to reproduce

Build code with gcc-11. Build fails.

What is the current bug behavior?

Build fails.

What is the expected correct behavior?

Build shall succeed.