mirror of
https://github.com/apache/nuttx.git
synced 2026-06-02 17:48:54 +08:00
Eliminate warnings
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@1186 42af7a65-404d-4744-a932-0658087f49c3
This commit is contained in:
@@ -212,7 +212,9 @@ FAR struct file_struct *lib_fdopen(int fd, FAR const char *mode,
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#if CONFIG_STDIO_BUFFER_SIZE > 0
|
||||||
errout_with_sem:
|
errout_with_sem:
|
||||||
|
#endif
|
||||||
stream_semgive(slist);
|
stream_semgive(slist);
|
||||||
|
|
||||||
errout:
|
errout:
|
||||||
|
|||||||
+2
-1
@@ -168,8 +168,9 @@ void lib_releaselist(FAR struct streamlist *list)
|
|||||||
|
|
||||||
if (crefs <= 0)
|
if (crefs <= 0)
|
||||||
{
|
{
|
||||||
|
#if CONFIG_STDIO_BUFFER_SIZE > 0
|
||||||
int i;
|
int i;
|
||||||
|
#endif
|
||||||
/* Destroy the semaphore and release the filelist */
|
/* Destroy the semaphore and release the filelist */
|
||||||
|
|
||||||
(void)sem_destroy(&list->sl_sem);
|
(void)sem_destroy(&list->sl_sem);
|
||||||
|
|||||||
@@ -260,7 +260,9 @@ ssize_t lib_fread(FAR void *ptr, size_t count, FAR FILE *stream)
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
#if CONFIG_STDIO_BUFFER_SIZE > 0
|
||||||
short_read:
|
short_read:
|
||||||
|
#endif
|
||||||
bytes_read = dest - (unsigned char*)ptr;
|
bytes_read = dest - (unsigned char*)ptr;
|
||||||
err_out:
|
err_out:
|
||||||
lib_give_semaphore(stream);
|
lib_give_semaphore(stream);
|
||||||
|
|||||||
Reference in New Issue
Block a user