diff options
| author | Andreas Schneider <asn@samba.org> | 2013-12-12 09:05:55 +0100 |
|---|---|---|
| committer | Andreas Schneider <asn@samba.org> | 2013-12-12 09:05:55 +0100 |
| commit | 04d0275dd1d7c937076857547aaa9fc6afb3c8a8 (patch) | |
| tree | a526fefe2d8da8f31bf5a2598d62d74381b2cc16 /src | |
| parent | 48db0346ceb93254ffbe7ffdf795e162867aa8e8 (diff) | |
| download | socket_wrapper-04d0275dd1d7c937076857547aaa9fc6afb3c8a8.tar.gz socket_wrapper-04d0275dd1d7c937076857547aaa9fc6afb3c8a8.tar.xz socket_wrapper-04d0275dd1d7c937076857547aaa9fc6afb3c8a8.zip | |
swrap: Don't build with swrap_str_lib() if NDEBUG is defined.
This fixes a compile warning on optimized builds.
Diffstat (limited to 'src')
| -rw-r--r-- | src/socket_wrapper.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/socket_wrapper.c b/src/socket_wrapper.c index addcc17..0fcdb99 100644 --- a/src/socket_wrapper.c +++ b/src/socket_wrapper.c @@ -355,6 +355,7 @@ enum swrap_lib { SWRAP_LIBSOCKET, }; +#ifndef NDEBUG static const char *swrap_str_lib(enum swrap_lib lib) { switch (lib) { @@ -369,6 +370,7 @@ static const char *swrap_str_lib(enum swrap_lib lib) /* Compiler would warn us about unhandled enum value if we get here */ return "unknown"; } +#endif static void *swrap_load_lib_handle(enum swrap_lib lib) { |
