Annotate auto_free with 'inline' to prevent redefinition
This way we prevent unused function warning coming from some files including this header.
This commit is contained in:
parent
f5bf769522
commit
a7a9f84ae2
1 changed files with 1 additions and 6 deletions
|
@ -127,16 +127,11 @@ public:
|
|||
}
|
||||
};
|
||||
|
||||
|
||||
|
||||
static void auto_free(const device_t::machine_t& machine, void * buffer) {
|
||||
static inline void auto_free(const device_t::machine_t& machine, void * buffer) {
|
||||
free(buffer);
|
||||
}
|
||||
|
||||
#define auto_alloc_array_clear(m, t, c) calloc(c, sizeof(t) )
|
||||
#define auto_alloc_clear(m, t) static_cast<t*>( calloc(1, sizeof(t) ) )
|
||||
|
||||
|
||||
|
||||
|
||||
#endif
|
||||
|
|
Loading…
Add table
Reference in a new issue