Add pg_nodiscard decorations to base64 functions

The result of pg_b64_encode() and pg_b64_decode() should be checked
for errors.  This attribute could detect mistakes such as those fixed
in commit ff030ebe250 and d278541be42.

Reviewed-by: Michael Paquier <mich...@paquier.xyz>
Reviewed-by: Ranier Vilela <ranier...@gmail.com>
Discussion: 
https://www.postgresql.org/message-id/flat/CAEudQAq-3yHsSdWoOOaw%2BgAQYgPMpMGuB5pt2yCXgv-YuxG2Hg%40mail.gmail.com

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/b0eff1098860f88dd385e6882ff7b1063d267213

Modified Files
--------------
src/include/common/base64.h | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)

Reply via email to