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
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
mariadb
Commits
617ae440
Commit
617ae440
authored
Sep 13, 2010
by
Sergei Golubchik
Browse files
Options
Browse Files
Download
Plain Diff
merged
parents
65d66ae1
966661c8
Changes
14
Show whitespace changes
Inline
Side-by-side
Showing
14 changed files
with
37 additions
and
62 deletions
+37
-62
include/my_global.h
include/my_global.h
+17
-27
plugin/daemon_example/Makefile.am
plugin/daemon_example/Makefile.am
+1
-4
plugin/fulltext/Makefile.am
plugin/fulltext/Makefile.am
+1
-1
sql/item_timefunc.cc
sql/item_timefunc.cc
+0
-5
storage/archive/Makefile.am
storage/archive/Makefile.am
+2
-2
storage/blackhole/Makefile.am
storage/blackhole/Makefile.am
+1
-3
storage/csv/Makefile.am
storage/csv/Makefile.am
+1
-1
storage/example/Makefile.am
storage/example/Makefile.am
+1
-4
storage/federated/Makefile.am
storage/federated/Makefile.am
+2
-3
storage/federatedx/Makefile.am
storage/federatedx/Makefile.am
+3
-4
storage/innobase/Makefile.am
storage/innobase/Makefile.am
+2
-2
storage/innodb_plugin/Makefile.am
storage/innodb_plugin/Makefile.am
+2
-2
storage/pbxt/src/Makefile.am
storage/pbxt/src/Makefile.am
+2
-2
storage/xtradb/Makefile.am
storage/xtradb/Makefile.am
+2
-2
No files found.
include/my_global.h
View file @
617ae440
...
...
@@ -568,44 +568,34 @@ int __void__;
#endif
/* DONT_DEFINE_VOID */
/*
Try to suppress warning for not initialized variables.
Deprecated workaround for false-positive uninitialized variables
warnings. Those should be silenced using tool-specific heuristics.
With gcc when using C, we suppress the uninitialized variable warning
without generating code. We can't do this with C++
for a g++ bug (http://gcc.gnu.org/bugzilla/show_bug.cgi?id=34772).
Enabled by default for g++ due to the bug referenced below.
*/
#if defined(FORCE_INIT_OF_VARS
)
#if defined(_lint) || defined(FORCE_INIT_OF_VARS) || \
(defined(__GNUC__) && defined(__cplusplus)
)
#define LINT_INIT(var) var= 0
#if defined(__cplusplus) || !defined(__GNUC__)
#define UNINIT_VAR(x) x= 0
#else
/* GCC specific self-initialization which inhibits the warning. */
#define UNINIT_VAR(x) x= x
#endif
#else
/* !FORCE_INIT_OF_VARS */
#define LINT_INIT(var)
#if !defined(__cplusplus) && !defined(__GNUC__)
/* GCC specific self-initialization which inhibits the warning. */
#define UNINIT_VAR(x) x= x
#else
#define UNINIT_VAR(x) x
#endif
#endif
/* FORCE_INIT_OF_VARS */
#include <my_valgrind.h>
/*
The following is to force some unitialized variables to 0 if we are
running valgrind. This is needed when the compiler may access the variable
even if the value of it is never used.
Suppress uninitialized variable warning without generating code.
The _cplusplus is a temporary workaround for C++ code pending a fix
for a g++ bug (http://gcc.gnu.org/bugzilla/show_bug.cgi?id=34772).
*/
#if defined(HAVE_valgrind)
#define VALGRIND_OR_LINT_INIT(var) var=0
#if defined(_lint) || defined(FORCE_INIT_OF_VARS) || \
defined(__cplusplus) || !defined(__GNUC__)
#define UNINIT_VAR(x) x= 0
#else
#define VALGRIND_OR_LINT_INIT(var) LINT_INIT(var)
/* GCC specific self-initialization which inhibits the warning. */
#define UNINIT_VAR(x) x= x
#endif
#include <my_valgrind.h>
/* Define some useful general macros */
#if !defined(max)
#define max(a, b) ((a) > (b) ? (a) : (b))
...
...
@@ -621,7 +611,7 @@ typedef unsigned short ushort;
#define CMP_NUM(a,b) (((a) < (b)) ? -1 : ((a) == (b)) ? 0 : 1)
#define sgn(a) (((a) < 0) ? -1 : ((a) > 0) ? 1 : 0)
#define swap_variables(t, a, b) { t
swap_dummy; swap_dummy= a; a= b; b= swap_
dummy; }
#define swap_variables(t, a, b) { t
dummy; dummy= a; a= b; b=
dummy; }
#define test(a) ((a) ? 1 : 0)
#define set_if_bigger(a,b) do { if ((a) < (b)) (a)=(b); } while(0)
#define set_if_smaller(a,b) do { if ((a) > (b)) (a)=(b); } while(0)
...
...
plugin/daemon_example/Makefile.am
View file @
617ae440
...
...
@@ -27,15 +27,12 @@ INCLUDES = -I$(top_srcdir)/include -I$(top_builddir)/include \
EXTRA_LTLIBRARIES
=
libdaemon_example.la
pkgplugin_LTLIBRARIES
=
@plugin_daemon_example_shared_target@
libdaemon_example_la_LDFLAGS
=
-module
-rpath
$(pkgplugindir)
libdaemon_example_la_CXXFLAGS
=
$(AM_CXXFLAGS)
-DMYSQL_DYNAMIC_PLUGIN
libdaemon_example_la_CFLAGS
=
$(AM_CFLAGS)
-DMYSQL_DYNAMIC_PLUGIN
libdaemon_example_la_CXXFLAGS
=
-shared
$(AM_CXXFLAGS)
-DMYSQL_DYNAMIC_PLUGIN
libdaemon_example_la_SOURCES
=
daemon_example.cc
EXTRA_LIBRARIES
=
libdaemon_example.a
noinst_LIBRARIES
=
@plugin_daemon_example_static_target@
libdaemon_example_a_CXXFLAGS
=
$(AM_CXXFLAGS)
libdaemon_example_a_CFLAGS
=
$(AM_CFLAGS)
libdaemon_example_a_SOURCES
=
daemon_example.cc
# Don't update the files from bitkeeper
...
...
plugin/fulltext/Makefile.am
View file @
617ae440
...
...
@@ -21,7 +21,7 @@ INCLUDES= -I$(top_builddir)/include -I$(top_srcdir)/include
pkgplugin_LTLIBRARIES
=
mypluglib.la
mypluglib_la_SOURCES
=
plugin_example.c
mypluglib_la_LDFLAGS
=
-module
-rpath
$(pkgplugindir)
mypluglib_la_CFLAGS
=
-DMYSQL_DYNAMIC_PLUGIN
mypluglib_la_CFLAGS
=
-
shared
-
DMYSQL_DYNAMIC_PLUGIN
# Don't update the files from bitkeeper
%
::
SCCS/s.%
sql/item_timefunc.cc
View file @
617ae440
...
...
@@ -288,11 +288,6 @@ static bool extract_date_time(DATE_TIME_FORMAT *format,
CHARSET_INFO
*
cs
=
&
my_charset_bin
;
DBUG_ENTER
(
"extract_date_time"
);
LINT_INIT
(
strict_week_number
);
/* Remove valgrind varnings when using gcc 3.3 and -O1 */
VALGRIND_OR_LINT_INIT
(
strict_week_number_year_type
);
VALGRIND_OR_LINT_INIT
(
sunday_first_n_first_week_non_iso
);
if
(
!
sub_pattern_end
)
bzero
((
char
*
)
l_time
,
sizeof
(
*
l_time
));
...
...
storage/archive/Makefile.am
View file @
617ae440
...
...
@@ -36,8 +36,8 @@ noinst_PROGRAMS = archive_test archive_reader
EXTRA_LTLIBRARIES
=
ha_archive.la
pkgplugin_LTLIBRARIES
=
@plugin_archive_shared_target@
ha_archive_la_LDFLAGS
=
-module
-rpath
$(pkgplugindir)
ha_archive_la_CXXFLAGS
=
$(AM_CXXFLAGS)
-DMYSQL_DYNAMIC_PLUGIN
ha_archive_la_CFLAGS
=
$(AM_CFLAGS)
-DMYSQL_DYNAMIC_PLUGIN
ha_archive_la_CXXFLAGS
=
-shared
$(AM_CXXFLAGS)
-DMYSQL_DYNAMIC_PLUGIN
ha_archive_la_CFLAGS
=
-shared
$(AM_CFLAGS)
-DMYSQL_DYNAMIC_PLUGIN
ha_archive_la_SOURCES
=
ha_archive.cc azio.c
...
...
storage/blackhole/Makefile.am
View file @
617ae440
...
...
@@ -35,15 +35,13 @@ noinst_HEADERS = ha_blackhole.h
EXTRA_LTLIBRARIES
=
ha_blackhole.la
pkgplugin_LTLIBRARIES
=
@plugin_blackhole_shared_target@
ha_blackhole_la_LDFLAGS
=
-module
-rpath
$(pkgplugindir)
ha_blackhole_la_CXXFLAGS
=
$(AM_CXXFLAGS)
-DMYSQL_DYNAMIC_PLUGIN
ha_blackhole_la_CFLAGS
=
$(AM_CFLAGS)
-DMYSQL_DYNAMIC_PLUGIN
ha_blackhole_la_CXXFLAGS
=
-shared
$(AM_CXXFLAGS)
-DMYSQL_DYNAMIC_PLUGIN
ha_blackhole_la_SOURCES
=
ha_blackhole.cc
EXTRA_LIBRARIES
=
libblackhole.a
noinst_LIBRARIES
=
@plugin_blackhole_static_target@
libblackhole_a_CXXFLAGS
=
$(AM_CXXFLAGS)
libblackhole_a_CFLAGS
=
$(AM_CFLAGS)
libblackhole_a_SOURCES
=
ha_blackhole.cc
...
...
storage/csv/Makefile.am
View file @
617ae440
...
...
@@ -32,7 +32,7 @@ noinst_HEADERS = ha_tina.h transparent_file.h
EXTRA_LTLIBRARIES
=
ha_csv.la
pkglib_LTLIBRARIES
=
@plugin_csv_shared_target@
ha_csv_la_LDFLAGS
=
-module
-rpath
$(MYSQLLIBdir)
ha_csv_la_CXXFLAGS
=
$(AM_CXXFLAGS)
-DMYSQL_PLUGIN
ha_csv_la_CXXFLAGS
=
-shared
$(AM_CXXFLAGS)
-DMYSQL_PLUGIN
ha_csv_la_SOURCES
=
transparent_file.cc ha_tina.cc
EXTRA_LIBRARIES
=
libcsv.a
...
...
storage/example/Makefile.am
View file @
617ae440
...
...
@@ -35,15 +35,12 @@ noinst_HEADERS = ha_example.h
EXTRA_LTLIBRARIES
=
ha_example.la
pkgplugin_LTLIBRARIES
=
@plugin_example_shared_target@
ha_example_la_LDFLAGS
=
-module
-rpath
$(pkgplugindir)
ha_example_la_CXXFLAGS
=
$(AM_CXXFLAGS)
-DMYSQL_DYNAMIC_PLUGIN
ha_example_la_CFLAGS
=
$(AM_CFLAGS)
-DMYSQL_DYNAMIC_PLUGIN
ha_example_la_CXXFLAGS
=
-shared
$(AM_CXXFLAGS)
-DMYSQL_DYNAMIC_PLUGIN
ha_example_la_SOURCES
=
ha_example.cc
EXTRA_LIBRARIES
=
libexample.a
noinst_LIBRARIES
=
@plugin_example_static_target@
libexample_a_CXXFLAGS
=
$(AM_CXXFLAGS)
libexample_a_CFLAGS
=
$(AM_CFLAGS)
libexample_a_SOURCES
=
ha_example.cc
...
...
storage/federated/Makefile.am
View file @
617ae440
...
...
@@ -33,15 +33,14 @@ noinst_HEADERS = ha_federated.h
EXTRA_LTLIBRARIES
=
ha_federated.la
pkgplugin_LTLIBRARIES
=
@plugin_federated_shared_target@
ha_federated_la_LDFLAGS
=
-module
-rpath
$(pkgplugindir)
ha_federated_la_CXXFLAGS
=
$(AM_CXXFLAGS)
-DMYSQL_DYNAMIC_PLUGIN
ha_federated_la_CFLAGS
=
$(AM_CFLAGS)
-DMYSQL_DYNAMIC_PLUGIN
ha_federated_la_CXXFLAGS
=
-shared
$(AM_CXXFLAGS)
-DMYSQL_DYNAMIC_PLUGIN
ha_federated_la_CFLAGS
=
-shared
$(AM_CFLAGS)
-DMYSQL_DYNAMIC_PLUGIN
ha_federated_la_SOURCES
=
ha_federated.cc
$(top_srcdir)
/mysys/string.c
EXTRA_LIBRARIES
=
libfederated.a
noinst_LIBRARIES
=
@plugin_federated_static_target@
libfederated_a_CXXFLAGS
=
$(AM_CXXFLAGS)
libfederated_a_CFLAGS
=
$(AM_CFLAGS)
libfederated_a_SOURCES
=
ha_federated.cc
...
...
storage/federatedx/Makefile.am
View file @
617ae440
...
...
@@ -20,14 +20,13 @@ noinst_HEADERS = ha_federatedx.h federatedx_probes.h
EXTRA_LTLIBRARIES
=
ha_federatedx.la
pkgplugin_LTLIBRARIES
=
@plugin_federatedx_shared_target@
ha_federatedx_la_LDFLAGS
=
-module
-rpath
$(pkgplugindir)
ha_federatedx_la_CXXFLAGS
=
$(AM_C
FLAGS)
-DMYSQL_DYNAMIC_PLUGIN
ha_federatedx_la_CFLAGS
=
$(AM_CFLAGS)
-DMYSQL_DYNAMIC_PLUGIN
ha_federatedx_la_CXXFLAGS
=
-shared
$(AM_CXX
FLAGS)
-DMYSQL_DYNAMIC_PLUGIN
ha_federatedx_la_CFLAGS
=
-shared
$(AM_CFLAGS)
-DMYSQL_DYNAMIC_PLUGIN
EXTRA_LIBRARIES
=
libfederatedx.a
noinst_LIBRARIES
=
@plugin_federatedx_static_target@
libfederatedx_a_CXXFLAGS
=
$(AM_CFLAGS)
libfederatedx_a_CFLAGS
=
$(AM_CFLAGS)
libfederatedx_a_CXXFLAGS
=
$(AM_CXXFLAGS)
libfederatedx_a_SOURCES
=
ha_federatedx.cc federatedx_txn.cc
\
federatedx_io.cc federatedx_io_null.cc
\
federatedx_io_mysql.cc
...
...
storage/innobase/Makefile.am
View file @
617ae440
...
...
@@ -163,8 +163,8 @@ EXTRA_LTLIBRARIES= ha_innodb.la
pkgplugin_LTLIBRARIES
=
@plugin_innobase_shared_target@
ha_innodb_la_LDFLAGS
=
-module
-rpath
$(pkgplugindir)
ha_innodb_la_CXXFLAGS
=
$(AM_CXXFLAGS)
$(INNODB_DYNAMIC_CFLAGS)
ha_innodb_la_CFLAGS
=
$(AM_CFLAGS)
$(INNODB_DYNAMIC_CFLAGS)
ha_innodb_la_CXXFLAGS
=
-shared
$(AM_CXXFLAGS)
$(INNODB_DYNAMIC_CFLAGS)
ha_innodb_la_CFLAGS
=
-shared
$(AM_CFLAGS)
$(INNODB_DYNAMIC_CFLAGS)
ha_innodb_la_SOURCES
=
$(libinnobase_a_SOURCES)
EXTRA_DIST
=
CMakeLists.txt plug.in
\
...
...
storage/innodb_plugin/Makefile.am
View file @
617ae440
...
...
@@ -332,8 +332,8 @@ EXTRA_LTLIBRARIES= ha_innodb_plugin.la
pkgplugin_LTLIBRARIES
=
@plugin_innodb_plugin_shared_target@
ha_innodb_plugin_la_LDFLAGS
=
-module
-rpath
$(pkgplugindir)
ha_innodb_plugin_la_CXXFLAGS
=
$(AM_CXXFLAGS)
$(INNODB_DYNAMIC_CFLAGS)
ha_innodb_plugin_la_CFLAGS
=
$(AM_CFLAGS)
$(INNODB_DYNAMIC_CFLAGS)
ha_innodb_plugin_la_CXXFLAGS
=
-shared
$(AM_CXXFLAGS)
$(INNODB_DYNAMIC_CFLAGS)
ha_innodb_plugin_la_CFLAGS
=
-shared
$(AM_CFLAGS)
$(INNODB_DYNAMIC_CFLAGS)
ha_innodb_plugin_la_SOURCES
=
$(libinnobase_a_SOURCES)
EXTRA_DIST
=
CMakeLists.txt plug.in
\
...
...
storage/pbxt/src/Makefile.am
View file @
617ae440
...
...
@@ -40,8 +40,8 @@ libpbxt_la_LDFLAGS = -module
# These are the warning Drizzle uses:
# DRIZZLE_WARNINGS = -W -Wall -Wextra -pedantic -Wundef -Wredundant-decls -Wno-strict-aliasing -Wno-long-long -Wno-unused-parameter
libpbxt_la_CXXFLAGS
=
$(AM_CXXFLAGS)
-DMYSQL_DYNAMIC_PLUGIN
libpbxt_la_CFLAGS
=
$(AM_CFLAGS)
-DMYSQL_DYNAMIC_PLUGIN
-std
=
c99
libpbxt_la_CXXFLAGS
=
-shared
$(AM_CXXFLAGS)
-DMYSQL_DYNAMIC_PLUGIN
libpbxt_la_CFLAGS
=
-shared
$(AM_CFLAGS)
-DMYSQL_DYNAMIC_PLUGIN
-std
=
c99
EXTRA_LIBRARIES
=
libpbxt.a
noinst_LIBRARIES
=
libpbxt.a
...
...
storage/xtradb/Makefile.am
View file @
617ae440
...
...
@@ -333,8 +333,8 @@ EXTRA_LTLIBRARIES= ha_xtradb.la
pkgplugin_LTLIBRARIES
=
@plugin_xtradb_shared_target@
ha_xtradb_la_LDFLAGS
=
-module
-rpath
$(pkgplugindir)
ha_xtradb_la_CXXFLAGS
=
$(AM_C
FLAGS)
$(INNODB_DYNAMIC_CFLAGS)
ha_xtradb_la_CFLAGS
=
$(AM_CFLAGS)
$(INNODB_DYNAMIC_CFLAGS)
ha_xtradb_la_CXXFLAGS
=
-shared
$(AM_CXX
FLAGS)
$(INNODB_DYNAMIC_CFLAGS)
ha_xtradb_la_CFLAGS
=
-shared
$(AM_CFLAGS)
$(INNODB_DYNAMIC_CFLAGS)
ha_xtradb_la_SOURCES
=
$(libxtradb_a_SOURCES)
EXTRA_DIST
=
CMakeLists.txt plug.in
\
...
...
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