forked from Imagelibrary/rtems
Add __attribute__((unused)) to function arguments.
This commit is contained in:
@@ -177,7 +177,7 @@ int fcntl(
|
|||||||
#include <reent.h>
|
#include <reent.h>
|
||||||
|
|
||||||
int _fcntl_r(
|
int _fcntl_r(
|
||||||
struct _reent *ptr,
|
struct _reent *ptr __attribute__((unused)),
|
||||||
int fd,
|
int fd,
|
||||||
int cmd,
|
int cmd,
|
||||||
int arg
|
int arg
|
||||||
|
|||||||
@@ -128,8 +128,8 @@ static void rtems_malloc_boundary_at_free(
|
|||||||
}
|
}
|
||||||
|
|
||||||
static void rtems_malloc_boundary_at_realloc(
|
static void rtems_malloc_boundary_at_realloc(
|
||||||
void *pointer,
|
void *pointer __attribute__((unused)),
|
||||||
size_t size
|
size_t size __attribute__((unused))
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
/* this needs to be implemented */
|
/* this needs to be implemented */
|
||||||
|
|||||||
@@ -53,7 +53,7 @@ extern struct _reent * const _global_impure_ptr __ATTRIBUTE_IMPURE_PTR__;
|
|||||||
* -- ptorre 9/30/03
|
* -- ptorre 9/30/03
|
||||||
*/
|
*/
|
||||||
bool newlib_create_hook(
|
bool newlib_create_hook(
|
||||||
rtems_tcb *current_task,
|
rtems_tcb *current_task __attribute__((unused)),
|
||||||
rtems_tcb *creating_task
|
rtems_tcb *creating_task
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -17,7 +17,7 @@
|
|||||||
#include <rtems/bspIo.h>
|
#include <rtems/bspIo.h>
|
||||||
|
|
||||||
int printk_plugin(
|
int printk_plugin(
|
||||||
void *ignored,
|
void *ignored __attribute__((unused)),
|
||||||
const char *format,
|
const char *format,
|
||||||
...
|
...
|
||||||
)
|
)
|
||||||
|
|||||||
@@ -95,7 +95,7 @@ int _STAT_NAME(
|
|||||||
#include <reent.h>
|
#include <reent.h>
|
||||||
|
|
||||||
int _STAT_R_NAME(
|
int _STAT_R_NAME(
|
||||||
struct _reent *ptr,
|
struct _reent *ptr __attribute__((unused)),
|
||||||
const char *path,
|
const char *path,
|
||||||
struct stat *buf
|
struct stat *buf
|
||||||
)
|
)
|
||||||
|
|||||||
@@ -26,7 +26,9 @@
|
|||||||
|
|
||||||
#include <rtems/libio.h>
|
#include <rtems/libio.h>
|
||||||
|
|
||||||
int tcflow (int fd, int action)
|
int tcflow (
|
||||||
|
int fd __attribute__((unused)),
|
||||||
|
int action __attribute__((unused)))
|
||||||
{
|
{
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -26,7 +26,9 @@
|
|||||||
|
|
||||||
#include <rtems/libio.h>
|
#include <rtems/libio.h>
|
||||||
|
|
||||||
int tcflush (int fd, int queue)
|
int tcflush (
|
||||||
|
int fd __attribute__((unused)),
|
||||||
|
int queue __attribute__((unused)) )
|
||||||
{
|
{
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -26,7 +26,9 @@
|
|||||||
|
|
||||||
#include <rtems/libio.h>
|
#include <rtems/libio.h>
|
||||||
|
|
||||||
int tcsendbreak ( int fd, int duration )
|
int tcsendbreak (
|
||||||
|
int fd __attribute__((unused)),
|
||||||
|
int duration __attribute__((unused)) )
|
||||||
{
|
{
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -26,7 +26,9 @@
|
|||||||
|
|
||||||
#include <rtems/libio.h>
|
#include <rtems/libio.h>
|
||||||
|
|
||||||
int tcsetprgrp(int fd, pid_t pid)
|
int tcsetprgrp(
|
||||||
|
int fd __attribute__((unused)),
|
||||||
|
pid_t pid __attribute__((unused)) )
|
||||||
{
|
{
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -100,7 +100,7 @@ int unlink(
|
|||||||
#include <reent.h>
|
#include <reent.h>
|
||||||
|
|
||||||
int _unlink_r(
|
int _unlink_r(
|
||||||
struct _reent *ptr,
|
struct _reent *ptr __attribute__((unused)),
|
||||||
const char *path
|
const char *path
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -64,9 +64,9 @@ bool rtems_filesystem_nodes_equal(
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
bool file_systems_below_this_mountpoint(
|
bool file_systems_below_this_mountpoint(
|
||||||
const char *path,
|
const char *path __attribute__((unused)),
|
||||||
rtems_filesystem_location_info_t *fs_root_loc,
|
rtems_filesystem_location_info_t *fs_root_loc,
|
||||||
rtems_filesystem_mount_table_entry_t *fs_to_unmount
|
rtems_filesystem_mount_table_entry_t *fs_to_unmount __attribute__((unused))
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
rtems_chain_node *the_node;
|
rtems_chain_node *the_node;
|
||||||
|
|||||||
@@ -29,7 +29,7 @@
|
|||||||
#include <reent.h>
|
#include <reent.h>
|
||||||
|
|
||||||
_ssize_t _write_r(
|
_ssize_t _write_r(
|
||||||
struct _reent *ptr,
|
struct _reent *ptr __attribute__((unused)),
|
||||||
int fd,
|
int fd,
|
||||||
const void *buf,
|
const void *buf,
|
||||||
size_t nbytes
|
size_t nbytes
|
||||||
|
|||||||
Reference in New Issue
Block a user