Skip to content

Commit 5eaa01f

Browse files
authored
Modify uthash_nonfatal_oom to suppress unused variable warning
1 parent b38e8b7 commit 5eaa01f

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/libltfs/uthash_ext.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ extern "C" {
5555
#define HASH_NONFATAL_OOM 1
5656

5757
#undef uthash_nonfatal_oom
58-
#define uthash_nonfatal_oom(obj) do { errno=ENOMEM; } while (0)
58+
#define uthash_nonfatal_oom(obj) do { (void)(obj); errno = ENOMEM; } while (0)
5959

6060
#define HASH_FIND_PARTIAL(structure,start,length,table,search,result) \
6161
do { \

0 commit comments

Comments
 (0)