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
617aaf10
Commit
617aaf10
authored
May 29, 2007
by
jani@hynda.mysql.fi
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Disabled compiler warnings mainly for Win 64.
parent
2d6d4513
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
13 additions
and
4 deletions
+13
-4
mysys/my_conio.c
mysys/my_conio.c
+4
-2
sql/ha_partition.cc
sql/ha_partition.cc
+1
-1
support-files/compiler_warnings.supp
support-files/compiler_warnings.supp
+8
-1
No files found.
mysys/my_conio.c
View file @
617aaf10
...
...
@@ -125,6 +125,7 @@ char* my_cgets(char *buffer, size_t clen, size_t* plen)
{
ULONG
state
;
char
*
result
;
DWORD
plen_res
;
CONSOLE_SCREEN_BUFFER_INFO
csbi
;
pthread_auto_mutex_decl
(
my_conio_cs
);
...
...
@@ -171,7 +172,8 @@ char* my_cgets(char *buffer, size_t clen, size_t* plen)
do
{
clen
=
min
(
clen
,
(
size_t
)
csbi
.
dwSize
.
X
*
csbi
.
dwSize
.
Y
);
if
(
!
ReadConsole
((
HANDLE
)
my_coninpfh
,
(
LPVOID
)
buffer
,
clen
-
1
,
plen
,
NULL
))
if
(
!
ReadConsole
((
HANDLE
)
my_coninpfh
,
(
LPVOID
)
buffer
,
clen
-
1
,
&
plen_res
,
NULL
))
{
result
=
NULL
;
clen
>>=
1
;
...
...
@@ -183,7 +185,7 @@ char* my_cgets(char *buffer, size_t clen, size_t* plen)
}
}
while
(
GetLastError
()
==
ERROR_NOT_ENOUGH_MEMORY
);
*
plen
=
plen_res
;
if
(
result
!=
NULL
)
{
...
...
sql/ha_partition.cc
View file @
617aaf10
...
...
@@ -1965,7 +1965,7 @@ bool ha_partition::create_handler_file(const char *name)
MYF
(
MY_WME
)))
>=
0
)
{
result
=
my_write
(
file
,
(
uchar
*
)
file_buffer
,
tot_len_byte
,
MYF
(
MY_WME
|
MY_NABP
))
;
MYF
(
MY_WME
|
MY_NABP
))
!=
0
;
VOID
(
my_close
(
file
,
MYF
(
0
)));
}
else
...
...
support-files/compiler_warnings.supp
View file @
617aaf10
...
...
@@ -51,6 +51,11 @@ db_vrfy.c : .*comparison is always false due to limited range of data type.*
.* : conversion from '.*size_t' to 'uint32'.*
.* : conversion from '.*size_t' to 'off_t'.*
.* : conversion from '.*size_t' to 'size_s'.*
.* : conversion from '.*size_t' to 'DWORD'.*
.* : conversion from '.*size_t' to 'uLongf'.*
.* : conversion from '.*size_t' to 'UINT'.*
.* : conversion from '.*size_t' to 'uInt'.*
.* : conversion from '.*size_t' to 'uint16'.*
#
# The following should be fixed by the ndb team
...
...
@@ -64,7 +69,9 @@ db_vrfy.c : .*comparison is always false due to limited range of data type.*
#
listener.cc : .*conversion from 'SOCKET' to 'int'.*
net_serv.cc : .*conversion from 'SOCKET' to 'int'.*
mi_packrec.c : .*result of 32-bit shift implicitly converted to 64 bits.* : 567
# allow a little moving space for the warning below
mi_packrec.c : .*result of 32-bit shift implicitly converted to 64 bits.* : 560-600
#
# Wrong compiler warnings
...
...
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