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
2d183900
Commit
2d183900
authored
Oct 24, 2007
by
marko
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
UNIV_MEM_ASSERT_RW(), UNIV_MEM_ASSERT_W(): Remove warnings on 64-bit systems.
parent
3973a430
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
8 deletions
+8
-8
include/univ.i
include/univ.i
+8
-8
No files found.
include/univ.i
View file @
2d183900
...
...
@@ -309,22 +309,22 @@ typedef void* os_thread_ret_t;
#
define
UNIV_MEM_FREE
(
addr
,
size
)
VALGRIND_MAKE_MEM_NOACCESS
(
addr
,
size
)
#
define
UNIV_MEM_ALLOC
(
addr
,
size
)
VALGRIND_MAKE_MEM_UNDEFINED
(
addr
,
size
)
#
define
UNIV_MEM_ASSERT_RW
(
addr
,
size
)
do
{
\
const
void
*
_p
=
(
const
void
*
)
\
const
void
*
_p
=
(
const
void
*
)
(
ulint
)
\
VALGRIND_CHECK_MEM_IS_DEFINED
(
addr
,
size
)
;
\
if
(
UNIV_LIKELY_NULL
(
_p
))
\
fprintf
(
stderr
,
"%s:%d: %p[%u] undefined at %d
\n
"
,
\
fprintf
(
stderr
,
"%s:%d: %p[%u] undefined at %
l
d
\n
"
,
\
__FILE__
,
__LINE__
,
\
(
const
void
*
)
(
addr
),
(
unsigned
)
(
size
),
\
((
const
char
*
)
_p
)
-
((
const
char
*
)
(
addr
)))
;
\
(
const
void
*
)
(
addr
),
(
unsigned
)
(
size
),
(
long
)
\
((
(
const
char
*
)
_p
)
-
((
const
char
*
)
(
addr
)
)))
;
\
}
while
(
0
)
#
define
UNIV_MEM_ASSERT_W
(
addr
,
size
)
do
{
\
const
void
*
_p
=
(
const
void
*
)
\
const
void
*
_p
=
(
const
void
*
)
(
ulint
)
\
VALGRIND_CHECK_MEM_IS_ADDRESSABLE
(
addr
,
size
)
;
\
if
(
UNIV_LIKELY_NULL
(
_p
))
\
fprintf
(
stderr
,
"%s:%d: %p[%u] unwritable at %d
\n
"
,
\
fprintf
(
stderr
,
"%s:%d: %p[%u] unwritable at %
l
d
\n
"
,
\
__FILE__
,
__LINE__
,
\
(
const
void
*
)
(
addr
),
(
unsigned
)
(
size
),
\
((
const
char
*
)
_p
)
-
((
const
char
*
)
(
addr
)))
;
\
(
const
void
*
)
(
addr
),
(
unsigned
)
(
size
),
(
long
)
\
((
(
const
char
*
)
_p
)
-
((
const
char
*
)
(
addr
)
)))
;
\
}
while
(
0
)
#
else
#
define
UNIV_MEM_VALID
(
addr
,
size
)
do
{}
while
(
0
)
...
...
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