Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
openfpm_devices
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Sbalzarini Lab
Software
Parallel Computing
OpenFPM
openfpm_devices
Commits
52aa2cff
Commit
52aa2cff
authored
9 years ago
by
Pietro Incardona
Browse files
Options
Downloads
Patches
Plain Diff
Eliminating warnings
parent
91963829
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/Memleak_check.hpp
+8
-8
8 additions, 8 deletions
src/Memleak_check.hpp
with
8 additions
and
8 deletions
src/Memleak_check.hpp
+
8
−
8
View file @
52aa2cff
...
...
@@ -202,7 +202,7 @@ inline static void get_project(size_t project_id, std::string & prj)
* Print all active structures
*
*/
static
void
print_alloc
()
inline
static
void
print_alloc
()
{
std
::
string
col
;
std
::
string
sid
;
...
...
@@ -223,7 +223,7 @@ static void print_alloc()
* \param break_id
*
*/
static
void
message_on_alloc
(
long
int
break_id
)
inline
static
void
message_on_alloc
(
long
int
break_id
)
{
msg_on_alloc
=
break_id
;
}
...
...
@@ -233,7 +233,7 @@ static void message_on_alloc(long int break_id)
* \param throw_id
*
*/
static
void
throw_on_alloc
(
long
int
throw_id
)
inline
static
void
throw_on_alloc
(
long
int
throw_id
)
{
thr_on_alloc
=
throw_id
;
}
...
...
@@ -246,7 +246,7 @@ static void throw_on_alloc(long int throw_id)
* \param sz size of the new allocated memory
*
*/
static
bool
check_new
(
const
void
*
data
,
size_t
sz
,
size_t
struct_id
,
size_t
project_id
)
inline
static
bool
check_new
(
const
void
*
data
,
size_t
sz
,
size_t
struct_id
,
size_t
project_id
)
{
// Add a new pointer
new_data
++
;
...
...
@@ -278,7 +278,7 @@ static bool check_new(const void * data, size_t sz, size_t struct_id, size_t pro
* \return true if the operation to delete succeed
*
*/
static
bool
check_delete
(
const
void
*
data
)
inline
static
bool
check_delete
(
const
void
*
data
)
{
if
(
data
==
NULL
)
return
true
;
// Delete the pointer
...
...
@@ -303,7 +303,7 @@ static bool check_delete(const void * data)
* \return true if the pointer is valid
*
*/
static
bool
check_valid
(
const
void
*
ptr
,
size_t
size_access
)
inline
static
bool
check_valid
(
const
void
*
ptr
,
size_t
size_access
)
{
if
(
active_ptr
.
size
()
==
0
)
{
...
...
@@ -369,7 +369,7 @@ static bool check_valid(const void * ptr, size_t size_access)
* \return true if the pointer is valid
*
*/
static
long
int
check_whoami
(
const
void
*
ptr
,
size_t
size_access
)
inline
static
long
int
check_whoami
(
const
void
*
ptr
,
size_t
size_access
)
{
if
(
active_ptr
.
size
()
==
0
)
return
-
1
;
...
...
@@ -404,7 +404,7 @@ static long int check_whoami(const void * ptr, size_t size_access)
* \param p_to_print is < 0 (Mean all)
*
*/
static
void
set_process_to_print
(
long
int
p_to_print
)
inline
static
void
set_process_to_print
(
long
int
p_to_print
)
{
process_to_print
=
p_to_print
;
}
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment