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
094640c0
Commit
094640c0
authored
Dec 19, 2014
by
Sergey Vojtovich
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed a couple of compiler warnings.
parent
0f64a927
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
12 additions
and
14 deletions
+12
-14
cmake/maintainer.cmake
cmake/maintainer.cmake
+2
-2
mysys/my_context.c
mysys/my_context.c
+8
-5
sql-common/client_plugin.c
sql-common/client_plugin.c
+0
-5
storage/innobase/include/dict0dict.h
storage/innobase/include/dict0dict.h
+1
-1
storage/xtradb/include/dict0dict.h
storage/xtradb/include/dict0dict.h
+1
-1
No files found.
cmake/maintainer.cmake
View file @
094640c0
...
@@ -36,8 +36,8 @@ ENDIF()
...
@@ -36,8 +36,8 @@ ENDIF()
# Turn on Werror (warning => error) when using maintainer mode.
# Turn on Werror (warning => error) when using maintainer mode.
IF
(
MYSQL_MAINTAINER_MODE MATCHES
"ON"
)
IF
(
MYSQL_MAINTAINER_MODE MATCHES
"ON"
)
SET
(
MY_C_WARNING_FLAGS
"
${
MY_C_WARNING_FLAGS
}
-Werror"
)
SET
(
MY_C_WARNING_FLAGS
"
${
MY_C_WARNING_FLAGS
}
-
DFORCE_INIT_OF_VARS -
Werror"
)
SET
(
MY_CXX_WARNING_FLAGS
"
${
MY_CXX_WARNING_FLAGS
}
-Werror"
)
SET
(
MY_CXX_WARNING_FLAGS
"
${
MY_CXX_WARNING_FLAGS
}
-
DFORCE_INIT_OF_VARS -
Werror"
)
ENDIF
()
ENDIF
()
# Set warning flags for GCC/Clang
# Set warning flags for GCC/Clang
...
...
mysys/my_context.c
View file @
094640c0
...
@@ -729,33 +729,36 @@ my_context_continue(struct my_context *c)
...
@@ -729,33 +729,36 @@ my_context_continue(struct my_context *c)
#ifdef MY_CONTEXT_DISABLE
#ifdef MY_CONTEXT_DISABLE
int
int
my_context_continue
(
struct
my_context
*
c
)
my_context_continue
(
struct
my_context
*
c
__attribute__
((
unused
))
)
{
{
return
-
1
;
return
-
1
;
}
}
int
int
my_context_spawn
(
struct
my_context
*
c
,
void
(
*
f
)(
void
*
),
void
*
d
)
my_context_spawn
(
struct
my_context
*
c
__attribute__
((
unused
)),
void
(
*
f
)(
void
*
)
__attribute__
((
unused
)),
void
*
d
__attribute__
((
unused
)))
{
{
return
-
1
;
return
-
1
;
}
}
int
int
my_context_yield
(
struct
my_context
*
c
)
my_context_yield
(
struct
my_context
*
c
__attribute__
((
unused
))
)
{
{
return
-
1
;
return
-
1
;
}
}
int
int
my_context_init
(
struct
my_context
*
c
,
size_t
stack_size
)
my_context_init
(
struct
my_context
*
c
__attribute__
((
unused
)),
size_t
stack_size
__attribute__
((
unused
)))
{
{
return
-
1
;
/* Out of memory */
return
-
1
;
/* Out of memory */
}
}
void
void
my_context_destroy
(
struct
my_context
*
c
)
my_context_destroy
(
struct
my_context
*
c
__attribute__
((
unused
))
)
{
{
}
}
...
...
sql-common/client_plugin.c
View file @
094640c0
...
@@ -28,11 +28,6 @@
...
@@ -28,11 +28,6 @@
There is no reference counting and no unloading either.
There is no reference counting and no unloading either.
*/
*/
#if _MSC_VER
/* Silence warnings about variable 'unused' being used. */
#define FORCE_INIT_OF_VARS 1
#endif
#include <my_global.h>
#include <my_global.h>
#include "mysql.h"
#include "mysql.h"
#include <my_sys.h>
#include <my_sys.h>
...
...
storage/innobase/include/dict0dict.h
View file @
094640c0
...
@@ -1139,7 +1139,7 @@ recalculated
...
@@ -1139,7 +1139,7 @@ recalculated
*/
*/
#define DICT_TABLE_CHANGED_TOO_MUCH(t) \
#define DICT_TABLE_CHANGED_TOO_MUCH(t) \
((ib_int64_t) (t)->stat_modified_counter > (srv_stats_modified_counter ? \
((ib_int64_t) (t)->stat_modified_counter > (srv_stats_modified_counter ? \
ut_min(srv_stats_modified_counter, (16 + (t)->stat_n_rows / 16)) : \
(ib_int64_t)
ut_min(srv_stats_modified_counter, (16 + (t)->stat_n_rows / 16)) : \
16 + (t)->stat_n_rows / 16))
16 + (t)->stat_n_rows / 16))
/*********************************************************************//**
/*********************************************************************//**
...
...
storage/xtradb/include/dict0dict.h
View file @
094640c0
...
@@ -1139,7 +1139,7 @@ recalculated
...
@@ -1139,7 +1139,7 @@ recalculated
*/
*/
#define DICT_TABLE_CHANGED_TOO_MUCH(t) \
#define DICT_TABLE_CHANGED_TOO_MUCH(t) \
((ib_int64_t) (t)->stat_modified_counter > (srv_stats_modified_counter ? \
((ib_int64_t) (t)->stat_modified_counter > (srv_stats_modified_counter ? \
ut_min(srv_stats_modified_counter, (16 + (t)->stat_n_rows / 16)) : \
(ib_int64_t)
ut_min(srv_stats_modified_counter, (16 + (t)->stat_n_rows / 16)) : \
16 + (t)->stat_n_rows / 16))
16 + (t)->stat_n_rows / 16))
/*********************************************************************//**
/*********************************************************************//**
...
...
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