clear clang errors
This commit is contained in:
@@ -1,22 +1,14 @@
|
||||
#include "symbols.h"
|
||||
|
||||
#include "logger/logger.h"
|
||||
#include "memory.h"
|
||||
#include "types.h"
|
||||
|
||||
#include <stdlib.h>
|
||||
|
||||
static inline uptr
|
||||
add_ptr_offset_if_invalid(uptr p, uptr offset,
|
||||
struct sc_array_memreg *const regions) {
|
||||
if (memory_find_pointer(p, regions, NULL) != HILOAD_OK)
|
||||
return p + offset;
|
||||
return p;
|
||||
}
|
||||
|
||||
void hi_free_symbol_info(SymbolInfos *symbols) {
|
||||
for (size_t i = 0; i < symbols->names.size; i++) {
|
||||
|
||||
#pragma GCC diagnostic push
|
||||
#pragma GCC diagnostic ignored "-Wcast-qual"
|
||||
free((void *)symbols->names.elems[i]);
|
||||
#pragma GCC diagnostic pop
|
||||
}
|
||||
|
||||
sc_array_term(&symbols->names);
|
||||
|
||||
Reference in New Issue
Block a user