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
477a1bc4
Commit
477a1bc4
authored
Jan 15, 2018
by
Vladislav Vaintroub
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Windows : fix compile warnings C4267, on 32bit first
parent
db28f0f8
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
13 additions
and
7 deletions
+13
-7
cmake/os/Windows.cmake
cmake/os/Windows.cmake
+5
-2
sql/create_options.cc
sql/create_options.cc
+2
-1
sql/log_event.cc
sql/log_event.cc
+2
-1
sql/sql_acl.cc
sql/sql_acl.cc
+2
-1
storage/connect/odbconn.cpp
storage/connect/odbconn.cpp
+2
-2
No files found.
cmake/os/Windows.cmake
View file @
477a1bc4
...
...
@@ -140,8 +140,11 @@ IF(MSVC)
#TODO: update the code and remove the disabled warnings
SET
(
CMAKE_C_FLAGS
"
${
CMAKE_C_FLAGS
}
/wd4805 /wd4996 /we4700 /we4311 /we4477 /we4302 /we4090"
)
SET
(
CMAKE_CXX_FLAGS
"
${
CMAKE_CXX_FLAGS
}
/wd4805 /wd4996 /wd4291 /wd4577 /we4099 /we4700 /we4311 /we4477 /we4302 /we4090 /wd4267"
)
SET
(
CMAKE_CXX_FLAGS
"
${
CMAKE_CXX_FLAGS
}
/wd4805 /wd4291 /wd4996 /we4099 /we4700 /we4311 /we4477 /we4302 /we4090"
)
IF
(
CMAKE_SIZEOF_VOID_P EQUAL 8
)
# Temporarily disable size_t warnings, due to their amount
SET
(
CMAKE_CXX_FLAGS
"
${
CMAKE_CXX_FLAGS
}
/wd4267"
)
ENDIF
()
IF
(
MYSQL_MAINTAINER_MODE MATCHES
"ERR"
)
SET
(
CMAKE_C_FLAGS
"
${
CMAKE_C_FLAGS
}
/WX"
)
SET
(
CMAKE_CXX_FLAGS
"
${
CMAKE_CXX_FLAGS
}
/WX"
)
...
...
sql/create_options.cc
View file @
477a1bc4
...
...
@@ -613,7 +613,8 @@ uchar *engine_option_value::frm_image(uchar *buff)
{
if
(
value
.
str
)
{
*
buff
++=
name
.
length
;
DBUG_ASSERT
(
name
.
length
<=
0xff
);
*
buff
++=
(
uchar
)
name
.
length
;
memcpy
(
buff
,
name
.
str
,
name
.
length
);
buff
+=
name
.
length
;
int2store
(
buff
,
value
.
length
|
(
quoted_value
?
FRM_QUOTED_VALUE
:
0
));
...
...
sql/log_event.cc
View file @
477a1bc4
...
...
@@ -11791,7 +11791,8 @@ int Table_map_log_event::rewrite_db(const char* new_db, size_t new_len,
cnt
+=
header_len
;
// Write new db name length and new name
*
ptr
++
=
new_len
;
DBUG_ASSERT
(
new_len
<
0xff
);
*
ptr
++
=
(
char
)
new_len
;
memcpy
(
ptr
,
new_db
,
new_len
+
1
);
ptr
+=
new_len
+
1
;
cnt
+=
m_dblen
+
2
;
...
...
sql/sql_acl.cc
View file @
477a1bc4
...
...
@@ -3007,7 +3007,8 @@ ulong acl_get(const char *host, const char *ip,
(
entry
=
(
acl_entry
*
)
malloc
(
sizeof
(
acl_entry
)
+
key_length
)))
{
entry
->
access
=
(
db_access
&
host_access
);
entry
->
length
=
key_length
;
DBUG_ASSERT
(
key_length
<
0xffff
);
entry
->
length
=
(
uint16
)
key_length
;
memcpy
((
uchar
*
)
entry
->
key
,
key
,
key_length
);
acl_cache
->
add
(
entry
);
}
...
...
storage/connect/odbconn.cpp
View file @
477a1bc4
...
...
@@ -2250,10 +2250,10 @@ class SQLQualifiedName
return
(
SQLCHAR
*
)
(
m_part
[
i
].
length
?
m_part
[
i
].
str
:
NULL
);
}
// end of ptr
size_t
length
(
uint
i
)
SQLSMALLINT
length
(
uint
i
)
{
DBUG_ASSERT
(
i
<
max_parts
);
return
m_part
[
i
].
length
;
return
(
SQLSMALLINT
)
m_part
[
i
].
length
;
}
// end of length
};
// end of class SQLQualifiedName
...
...
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