File tree Expand file tree Collapse file tree 2 files changed +5
-3
lines changed
source/common/unified_malloc_framework/src Expand file tree Collapse file tree 2 files changed +5
-3
lines changed Original file line number Diff line number Diff line change 21
21
22
22
#if !defined(_WIN32 )
23
23
critnib * TRACKER = NULL ;
24
- void __attribute__((constructor )) createLibTracker () {
24
+ void __attribute__((constructor )) createLibTracker (void ) {
25
25
TRACKER = critnib_new ();
26
26
}
27
- void __attribute__((destructor )) deleteLibTracker () { critnib_delete (TRACKER ); }
27
+ void __attribute__((destructor )) deleteLibTracker (void ) {
28
+ critnib_delete (TRACKER );
29
+ }
28
30
29
31
umf_memory_tracker_handle_t umfMemoryTrackerGet (void ) {
30
32
return (umf_memory_tracker_handle_t )TRACKER ;
Original file line number Diff line number Diff line change 13
13
14
14
#include "utils.h"
15
15
16
- struct os_mutex_t * util_mutex_create () {
16
+ struct os_mutex_t * util_mutex_create (void ) {
17
17
pthread_mutex_t * mutex = (pthread_mutex_t * )malloc (sizeof (pthread_mutex_t ));
18
18
int ret = pthread_mutex_init (mutex , NULL );
19
19
return ret == 0 ? ((struct os_mutex_t * )mutex ) : NULL ;
You can’t perform that action at this time.
0 commit comments