|
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Minios-devel] [PATCH] lib/sys.c: enclose file_types in define guards
otherwise some build environments complain file_types array is defined
but not used.
Signed-off-by: Wei Liu <wei.liu2@xxxxxxxxxx>
---
lib/sys.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/lib/sys.c b/lib/sys.c
index f8d7a7c..1420722 100644
--- a/lib/sys.c
+++ b/lib/sys.c
@@ -634,6 +634,7 @@ int closedir(DIR *dir)
/* We assume that only the main thread calls select(). */
+#if defined(LIBC_DEBUG) || defined(LIBC_VERBOSE)
static const char file_types[] = {
[FTYPE_NONE] = 'N',
[FTYPE_CONSOLE] = 'C',
@@ -646,6 +647,7 @@ static const char file_types[] = {
[FTYPE_KBD] = 'K',
[FTYPE_FB] = 'G',
};
+#endif
#ifdef LIBC_DEBUG
static void dump_set(int nfds, fd_set *readfds, fd_set *writefds, fd_set
*exceptfds, struct timeval *timeout)
{
--
2.1.4
_______________________________________________
Minios-devel mailing list
Minios-devel@xxxxxxxxxxxxxxxxxxxx
http://lists.xenproject.org/cgi-bin/mailman/listinfo/minios-devel
|
![]() |
Lists.xenproject.org is hosted with RackSpace, monitoring our |