Skip to content

Commit

Permalink
BAL_UNUSED
Browse files Browse the repository at this point in the history
  • Loading branch information
aremmell committed Jan 7, 2024
1 parent 731b138 commit 794fa6f
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions include/bal/helpers.h
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,9 @@
# include "types.h"
# include "errors.h"

/** Allows a parameter to be unreferenced without compiler warnings. */
# define BAL_UNUSED(var) (void)(var)

/** Performs a case-insensitive string comparison and returns true if the
* strings are the same. */
static inline
Expand Down Expand Up @@ -79,9 +82,6 @@ void __bal_safefree(void** pp)
(void)snprintf(dst, _n, __VA_ARGS__); \
} while (false)

/** Allows a parameter to be unreferenced without compiler warnings. */
# define BAL_UNUSED(var) (void)(var)

/** getnameinfo flags: do not perform DNS queries. */
# define _BAL_NI_NODNS (NI_NUMERICHOST | NI_NUMERICSERV)

Expand Down

0 comments on commit 794fa6f

Please sign in to comment.