Files
rtems/cpukit/libcsupport/src/termiosinitialize.c
Joel Sherrill cf0a338520 cpukit/libcsupport/*: Address unused parameter warnings
Add "(void) param;" annotation to address unused parameter warnings.
Found with GCC's warning -Wunused-paramter.
2025-09-26 22:38:34 +00:00

48 lines
1018 B
C

/* SPDX-License-Identifier: GPL-2.0-with-RTEMS-exception */
/**
* @file
*
* @ingroup TermiostypesSupport
*
* @brief This source file contains the implementation of
* rtems_termios_device_lock_acquire_default() and
* rtems_termios_device_lock_release_default().
*/
/*
* Copyright (c) 1997 Eric Norum <eric@norum.ca>
*
* The license and distribution terms for this file may be
* found in the file LICENSE in this distribution or at
* http://www.rtems.org/license/LICENSE.
*/
#ifdef HAVE_CONFIG_H
#include "config.h"
#endif
#include <rtems/termiosdevice.h>
void
rtems_termios_device_lock_acquire_default(
rtems_termios_device_context *ctx,
rtems_interrupt_lock_context *lock_context
)
{
(void) ctx;
rtems_interrupt_lock_acquire (&ctx->lock.interrupt, lock_context);
}
void
rtems_termios_device_lock_release_default(
rtems_termios_device_context *ctx,
rtems_interrupt_lock_context *lock_context
)
{
(void) ctx;
rtems_interrupt_lock_release (&ctx->lock.interrupt, lock_context);
}