diff options
author | patacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3> | 2008-11-10 23:19:07 +0000 |
---|---|---|
committer | patacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3> | 2008-11-10 23:19:07 +0000 |
commit | fca8049832b607144e4b68d2ec3022eb0385ae86 (patch) | |
tree | 3d15fbdf753478c2135721880c105c21b6afd3c4 /nuttx/lib | |
parent | ea226482489e8bb77db070d6effe6de2dba32bbf (diff) | |
download | px4-nuttx-fca8049832b607144e4b68d2ec3022eb0385ae86.tar.gz px4-nuttx-fca8049832b607144e4b68d2ec3022eb0385ae86.tar.bz2 px4-nuttx-fca8049832b607144e4b68d2ec3022eb0385ae86.zip |
Eliminate warnings
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@1186 42af7a65-404d-4744-a932-0658087f49c3
Diffstat (limited to 'nuttx/lib')
-rw-r--r-- | nuttx/lib/lib_fopen.c | 2 | ||||
-rw-r--r-- | nuttx/lib/lib_init.c | 3 | ||||
-rw-r--r-- | nuttx/lib/lib_libfread.c | 2 |
3 files changed, 6 insertions, 1 deletions
diff --git a/nuttx/lib/lib_fopen.c b/nuttx/lib/lib_fopen.c index 92009cd27..e45a891f6 100644 --- a/nuttx/lib/lib_fopen.c +++ b/nuttx/lib/lib_fopen.c @@ -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: +#endif stream_semgive(slist); errout: diff --git a/nuttx/lib/lib_init.c b/nuttx/lib/lib_init.c index 05d513bb9..19222535d 100644 --- a/nuttx/lib/lib_init.c +++ b/nuttx/lib/lib_init.c @@ -168,8 +168,9 @@ void lib_releaselist(FAR struct streamlist *list) if (crefs <= 0) { +#if CONFIG_STDIO_BUFFER_SIZE > 0 int i; - +#endif /* Destroy the semaphore and release the filelist */ (void)sem_destroy(&list->sl_sem); diff --git a/nuttx/lib/lib_libfread.c b/nuttx/lib/lib_libfread.c index c0a43e0c8..0ff12d0dd 100644 --- a/nuttx/lib/lib_libfread.c +++ b/nuttx/lib/lib_libfread.c @@ -260,7 +260,9 @@ ssize_t lib_fread(FAR void *ptr, size_t count, FAR FILE *stream) } } #endif +#if CONFIG_STDIO_BUFFER_SIZE > 0 short_read: +#endif bytes_read = dest - (unsigned char*)ptr; err_out: lib_give_semaphore(stream); |