summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorXavier Roche <xroche@users.noreply.github.com>2014-06-14 09:21:48 +0000
committerXavier Roche <xroche@users.noreply.github.com>2014-06-14 09:21:48 +0000
commit84632e7bb65dee0af2774d1b70b815506f7658e0 (patch)
tree199a2756bc9ad3e85fc98bf2ac2993fb3b867cfe /src
parenta4f1156edc27ae06729a878a494eb249db60c93b (diff)
Hashtable cleanup
Diffstat (limited to 'src')
-rw-r--r--src/htsinthash.c3
-rw-r--r--src/htsinthash.h5
2 files changed, 3 insertions, 5 deletions
diff --git a/src/htsinthash.c b/src/htsinthash.c
index 00f5d2a..593bf94 100644
--- a/src/htsinthash.c
+++ b/src/htsinthash.c
@@ -304,6 +304,8 @@ static void inthash_log(const inthash hashtable, inthash_loglevel level,
static void inthash_nolog(const inthash hashtable, const char *format, ...)
INTHASH_PRINTF_FUN(2, 3);
static void inthash_nolog(const inthash hashtable, const char *format, ...) {
+ (void) hashtable;
+ (void) format;
}
const char* inthash_get_name(inthash hashtable) {
@@ -735,6 +737,7 @@ int inthash_write(inthash hashtable, inthash_key_const name, intptr_t intvalue)
static void inthash_default_free_handler(inthash_opaque arg,
inthash_value value) {
+ (void) arg;
if (value.ptr != NULL)
free(value.ptr);
}
diff --git a/src/htsinthash.h b/src/htsinthash.h
index b2fd8b8..fb62767 100644
--- a/src/htsinthash.h
+++ b/src/htsinthash.h
@@ -191,9 +191,6 @@ struct struct_inthash_enum {
size_t index;
};
-/* Library internal definictions */
-#ifdef HTS_INTERNAL_BYTECODE
-
#ifdef __cplusplus
extern "C" {
#endif
@@ -408,5 +405,3 @@ void inthash_set_global_assert_handler(t_inthash_loghandler log,
#endif
#endif
-
-#endif