projects
/
rrq
/
rrqmisc.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
added explicit "unused" markers
[rrq/rrqmisc.git]
/
typing
/
stringitem.c
diff --git
a/typing/stringitem.c
b/typing/stringitem.c
index ee8f2cba74695f39f16faf47eb8aaa4facd3d9cf..d39908b97a0e9b065e297449c6d60221a31ac84a 100644
(file)
--- a/
typing/stringitem.c
+++ b/
typing/stringitem.c
@@
-12,6
+12,7
@@
* the hashcode index.
*/
static unsigned long stringitem_hashcode(void *this,void *key) {
* the hashcode index.
*/
static unsigned long stringitem_hashcode(void *this,void *key) {
+ (void)this;
return HashVector_hashcode( (unsigned char*)key, strlen( (char*)key ) );
}
return HashVector_hashcode( (unsigned char*)key, strlen( (char*)key ) );
}
@@
-20,6
+21,7
@@
static unsigned long stringitem_hashcode(void *this,void *key) {
* given key or not.
*/
static int stringitem_haskey(void *this,void *item,void *key) {
* given key or not.
*/
static int stringitem_haskey(void *this,void *item,void *key) {
+ (void)this;
return strcmp( item, key ) == 0;
}
return strcmp( item, key ) == 0;
}
@@
-28,6
+30,7
@@
static int stringitem_haskey(void *this,void *item,void *key) {
* the arity and schema.
*/
static void *stringitem_itemkey(void *this,void *item) {
* the arity and schema.
*/
static void *stringitem_itemkey(void *this,void *item) {
+ (void)this;
return item;
}
return item;
}
@@
-36,6
+39,7
@@
static void *stringitem_itemkey(void *this,void *item) {
* callback function to reclaim temporary allocation.
*/
static void stringitem_releasekey(void *this,void *key) {
* callback function to reclaim temporary allocation.
*/
static void stringitem_releasekey(void *this,void *key) {
+ (void)this; (void)key;
}
/**
}
/**
@@
-43,6
+47,7
@@
static void stringitem_releasekey(void *this,void *key) {
* a character buffer.
*/
static int stringitem_tostring(void *this,void *item,char *buffer,int limit) {
* a character buffer.
*/
static int stringitem_tostring(void *this,void *item,char *buffer,int limit) {
+ (void)this;
if ( item ) {
return snprintf( buffer, limit, "\"%s\"", (char*) item );
}
if ( item ) {
return snprintf( buffer, limit, "\"%s\"", (char*) item );
}