From abcbb24cf2a48c4ac43511d7224d0eafea7cf77e Mon Sep 17 00:00:00 2001 From: Gregory Nutt Date: Thu, 9 Feb 2017 10:56:12 -0600 Subject: [PATCH] sem_open(): Fix a compiler error introduced with the setvbuf() changes. --- fs/semaphore/sem_open.c | 1 - libc/Kconfig | 7 ++++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/fs/semaphore/sem_open.c b/fs/semaphore/sem_open.c index 847d728594..aad94091b1 100644 --- a/fs/semaphore/sem_open.c +++ b/fs/semaphore/sem_open.c @@ -142,7 +142,6 @@ FAR sem_t *sem_open (FAR const char *name, int oflags, ...) /* Something exists at this path. Get the search results */ inode = desc.node; - relpath = desc.relpath; DEBUGASSERT(inode != NULL); /* Verify that the inode is a semaphore */ diff --git a/libc/Kconfig b/libc/Kconfig index a095a9a392..774a4e00c6 100644 --- a/libc/Kconfig +++ b/libc/Kconfig @@ -14,9 +14,10 @@ config STDIO_DISABLE_BUFFERING NOTE that even if STDIO buffering is enabled, you can still disable buffer by setting CONFIG_STDIO_BUFFER_SIZE=0 or dynamically through - the setvbuf() interface. In these case, however, there is no - reduction in code size. Only setting CONFIG_STDIO_DISABLE_BUFFERING - will reduce code size. + the setvbuf() interface. In this case, however, memory used for + buffering will be eliminated, of course, buth there will be no + reduction in static code size. Only setting + CONFIG_STDIO_DISABLE_BUFFERING will reduce static code size. if !STDIO_DISABLE_BUFFERING