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
10057bf4
Commit
10057bf4
authored
Apr 29, 2007
by
serg@sergbook.mysql.com
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
compilation failure
parent
b396d858
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
2 deletions
+4
-2
include/my_global.h
include/my_global.h
+4
-0
sql/sql_lex.cc
sql/sql_lex.cc
+0
-2
No files found.
include/my_global.h
View file @
10057bf4
...
...
@@ -466,12 +466,16 @@ C_MODE_END
#include <assert.h>
/* an assert that works at compile-time. only for constant expression */
#ifdef __WIN__
#define compile_time_assert(X) do { } while(0)
#else
#define compile_time_assert(X) \
do \
{ \
char compile_time_assert[(X) ? 1 : -1] \
__attribute__ ((unused)); \
} while(0)
#endif
/* Go around some bugs in different OS and compilers */
#if defined (HPUX11) && defined(_LARGEFILE_SOURCE)
...
...
sql/sql_lex.cc
View file @
10057bf4
...
...
@@ -1772,10 +1772,8 @@ st_lex::st_lex()
:
result
(
0
),
yacc_yyss
(
0
),
yacc_yyvs
(
0
),
sql_command
(
SQLCOM_END
)
{
#ifndef __WIN__
/* Check that plugins_static_buffer is declared immediately after plugins */
compile_time_assert
((
&
plugins
+
1
)
==
(
DYNAMIC_ARRAY
*
)
plugins_static_buffer
);
#endif
my_init_dynamic_array2
(
&
plugins
,
sizeof
(
plugin_ref
),
plugins_static_buffer
,
...
...
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