[MDEV-19256] sql_acl.cc does not compile with WITH_VALGRIND with gcc 8.0 Created: 2019-04-16  Updated: 2019-04-16  Resolved: 2019-04-16

Status: Closed
Project: MariaDB Server
Component/s: OTHER
Affects Version/s: 10.4
Fix Version/s: 10.4.5

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


 Description   

Class Sql_alloc has a constructor when HAVE_valgrind is enabled:

class Sql_alloc
{
public:
 ...
#ifdef HAVE_valgrind
  bool dummy_for_valgrind;
  inline Sql_alloc() :dummy_for_valgrind(0) {}
#endif
};

so gcc-8.0 does not like when bzero is done over Sql_alloc descendants.

sql_acl.cc has some such classes:

  • ACL_ACCESS
  • ACL_USER_BASE
  • ACL_USER
    that derive from Sql_alloc and are used with bzero.

Generated at Thu Feb 08 08:50:14 UTC 2024 using Jira 8.20.16#820016-sha1:9d11dbea5f4be3d4cc21f03a88dd11d8c8687422.