mirror of
https://gitlab.rtems.org/rtems/rtos/rtems.git
synced 2026-09-22 01:25:17 +08:00
2011-12-06 Ralf Corsépius <ralf.corsepius@rtems.org>
* libcsupport/src/flockfile.c, libcsupport/src/ftrylockfile.c, libcsupport/src/funlockfile.c: Add __attribute__((unused)) to unused function parameters.
This commit is contained in:
@@ -1,3 +1,9 @@
|
||||
2011-12-06 Ralf Corsépius <ralf.corsepius@rtems.org>
|
||||
|
||||
* libcsupport/src/flockfile.c, libcsupport/src/ftrylockfile.c,
|
||||
libcsupport/src/funlockfile.c:
|
||||
Add __attribute__((unused)) to unused function parameters.
|
||||
|
||||
2011-12-06 Ralf Corsépius <ralf.corsepius@rtems.org>
|
||||
|
||||
* libcsupport/src/envlock.c: Build conditionally.
|
||||
|
||||
@@ -15,7 +15,7 @@
|
||||
#include <stdio.h>
|
||||
|
||||
/* This is a non-functional stub */
|
||||
void flockfile(FILE* file)
|
||||
void flockfile(FILE* file __attribute__((unused)))
|
||||
{
|
||||
}
|
||||
|
||||
|
||||
@@ -17,7 +17,7 @@
|
||||
#include <errno.h>
|
||||
|
||||
/* This is a non-functional stub */
|
||||
int ftrylockfile(FILE* file)
|
||||
int ftrylockfile(FILE* file __attribute__((unused)))
|
||||
{
|
||||
rtems_set_errno_and_return_minus_one( ENOTSUP );
|
||||
}
|
||||
|
||||
@@ -15,7 +15,7 @@
|
||||
#include <stdio.h>
|
||||
|
||||
/* This is a non-functional stub */
|
||||
void funlockfile(FILE* file)
|
||||
void funlockfile(FILE* file __attribute__((unused)))
|
||||
{
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user