Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
M
MariaDB
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
nexedi
MariaDB
Commits
2920377a
Commit
2920377a
authored
Oct 14, 2019
by
Marko Mäkelä
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
MDEV-19740: Fix C++11 violations caught by GCC 9.2.1
This is a backport of commit
ec28f953
to MariaDB Server 10.1.
parent
2ae02c29
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
19 additions
and
8 deletions
+19
-8
sql/item.h
sql/item.h
+1
-3
sql/sql_list.h
sql/sql_list.h
+18
-5
No files found.
sql/item.h
View file @
2920377a
...
...
@@ -2,7 +2,7 @@
#define SQL_ITEM_INCLUDED
/* Copyright (c) 2000, 2017, Oracle and/or its affiliates.
Copyright (c) 2009, 201
8, MariaDB Corporation
Copyright (c) 2009, 201
9, MariaDB Corporation.
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
...
...
@@ -611,8 +611,6 @@ class Item: public Value_source,
public
Type_std_attributes
,
public
Type_handler
{
Item
(
const
Item
&
);
/* Prevent use of these */
void
operator
=
(
Item
&
);
/**
The index in the JOIN::join_tab array of the JOIN_TAB this Item is attached
to. Items are attached (or 'pushed') to JOIN_TABs during optimization by the
...
...
sql/sql_list.h
View file @
2920377a
#ifndef INCLUDES_MYSQL_SQL_LIST_H
#define INCLUDES_MYSQL_SQL_LIST_H
/* Copyright (c) 2000, 2012, Oracle and/or its affiliates.
Copyright (c) 2019, MariaDB Corporation.
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
...
...
@@ -85,6 +86,14 @@ class SQL_I_List :public Sql_alloc
next
=
elements
?
tmp
.
next
:
&
first
;
}
SQL_I_List
&
operator
=
(
const
SQL_I_List
&
tmp
)
{
elements
=
tmp
.
elements
;
first
=
tmp
.
first
;
next
=
tmp
.
next
;
return
*
this
;
}
inline
void
empty
()
{
elements
=
0
;
...
...
@@ -175,6 +184,13 @@ class base_list :public Sql_alloc
first
==
rhs
.
first
&&
last
==
rhs
.
last
;
}
base_list
&
operator
=
(
const
base_list
&
rhs
)
{
elements
=
rhs
.
elements
;
first
=
rhs
.
first
;
last
=
elements
?
rhs
.
last
:
&
first
;
return
*
this
;
}
inline
void
empty
()
{
elements
=
0
;
first
=
&
end_of_list
;
last
=&
first
;}
inline
base_list
()
{
empty
();
}
...
...
@@ -189,9 +205,7 @@ class base_list :public Sql_alloc
*/
inline
base_list
(
const
base_list
&
tmp
)
:
Sql_alloc
()
{
elements
=
tmp
.
elements
;
first
=
tmp
.
first
;
last
=
elements
?
tmp
.
last
:
&
first
;
*
this
=
tmp
;
}
/**
Construct a deep copy of the argument in memory root mem_root.
...
...
@@ -200,7 +214,7 @@ class base_list :public Sql_alloc
list_copy_and_replace_each_value after creating a copy.
*/
base_list
(
const
base_list
&
rhs
,
MEM_ROOT
*
mem_root
);
inline
base_list
(
bool
error
)
{
}
inline
base_list
(
bool
)
{
}
inline
bool
push_back
(
void
*
info
)
{
if
(((
*
last
)
=
new
list_node
(
info
,
&
end_of_list
)))
...
...
@@ -512,7 +526,6 @@ template <class T> class List :public base_list
{
public:
inline
List
()
:
base_list
()
{}
inline
List
(
const
List
<
T
>
&
tmp
)
:
base_list
(
tmp
)
{}
inline
List
(
const
List
<
T
>
&
tmp
,
MEM_ROOT
*
mem_root
)
:
base_list
(
tmp
,
mem_root
)
{}
inline
bool
push_back
(
T
*
a
)
{
return
base_list
::
push_back
(
a
);
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment