[MDEV-28224] error: cannot initialize return object of type 'bool' with an rvalue of type 'nullptr_t' Created: 2022-04-02  Updated: 2022-04-04  Resolved: 2022-04-04

Status: Closed
Project: MariaDB Server
Component/s: Compiling, Platform FreeBSD
Affects Version/s: 10.6
Fix Version/s: 10.3.35, 10.4.25, 10.5.16, 10.6.8, 10.7.4, 10.8.3, 10.9.1

Type: Bug Priority: Major
Reporter: Elena Stepanova Assignee: Alexander Barkov
Resolution: Fixed Votes: 0
Labels: None
Environment:

FreeBSD clang version 11.0.1 (git@github.com:llvm/llvm-project.git llvmorg-11.0.1-0-g43ff75f2c3fe)
Target: x86_64-unknown-freebsd13.0



 Description   

Probably other versions are affected to, didn't try to build yet, but the commit in question is in 10.3+

10.6 28116ca3614

/usr/ports/databases/mariadb106-server/work/mariadb-10.6.8/sql/sql_lex.cc:9265:12: error: cannot initialize return object of type 'bool' with an rvalue of type 'nullptr_t'
    return NULL;
           ^~~~
/usr/include/sys/_null.h:37:14: note: expanded from macro 'NULL'
#define NULL    nullptr
                ^~~~~~~
/usr/ports/databases/mariadb106-server/work/mariadb-10.6.8/sql/sql_lex.cc:9269:12: error: cannot initialize return object of type 'bool' with an rvalue of type 'nullptr_t'
    return NULL;
           ^~~~
/usr/include/sys/_null.h:37:14: note: expanded from macro 'NULL'
#define NULL    nullptr
                ^~~~~~~
/usr/ports/databases/mariadb106-server/work/mariadb-10.6.8/sql/sql_lex.cc:9276:12: error: cannot initialize return object of type 'bool' with an rvalue of type 'nullptr_t'
    return NULL;
           ^~~~
/usr/include/sys/_null.h:37:14: note: expanded from macro 'NULL'
#define NULL    nullptr
                ^~~~~~~
3 errors generated.

The lines appear to belong to this commit:

commit fbcf0225e195bae2679272569e5a6310557ec853 (origin/bb-10.3-bar)
Author: Alexander Barkov
Date:   Fri Mar 25 13:52:32 2022 +0400
 
    MDEV-19804 sql_mode=ORACLE: call procedure in packages


Generated at Thu Feb 08 09:59:03 UTC 2024 using Jira 8.20.16#820016-sha1:9d11dbea5f4be3d4cc21f03a88dd11d8c8687422.