Skip to content

Commit b64fa0b

Browse files
committed
Fix warning on non-SMP builds
Signed-off-by: Paul Guyot <pguyot@kallisys.net>
1 parent 5074d01 commit b64fa0b

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/libAtomVM/atom_table.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -35,9 +35,9 @@
3535
#define SMP_WRLOCK(htable) smp_rwlock_wrlock(htable->lock)
3636
#define SMP_UNLOCK(htable) smp_rwlock_unlock(htable->lock)
3737
#else
38-
#define SMP_RDLOCK(htable)
39-
#define SMP_WRLOCK(htable)
40-
#define SMP_UNLOCK(htable)
38+
#define SMP_RDLOCK(htable) UNUSED(htable)
39+
#define SMP_WRLOCK(htable) UNUSED(htable)
40+
#define SMP_UNLOCK(htable) UNUSED(htable)
4141
#endif
4242

4343
#define DEFAULT_SIZE 8

0 commit comments

Comments
 (0)