[PATCH/committed,2/2] sim: rx: mark unused static var as unused

Message ID 20231205045059.4129-2-vapier@gentoo.org
State New
Headers
Series [PATCH/committed,1/2] sim: rx: constify some read-only global vars |

Checks

Context Check Description
linaro-tcwg-bot/tcwg_gdb_build--master-aarch64 warning Patch is already merged
linaro-tcwg-bot/tcwg_gdb_build--master-arm warning Patch is already merged

Commit Message

Mike Frysinger Dec. 5, 2023, 4:50 a.m. UTC
  This seems like a useful utility func that mirrors the int2float
helper, so mark it as unused rather than delete.
---
 sim/rx/rx.c | 1 +
 1 file changed, 1 insertion(+)
  

Patch

diff --git a/sim/rx/rx.c b/sim/rx/rx.c
index 7502131f1319..a6cfcf327de7 100644
--- a/sim/rx/rx.c
+++ b/sim/rx/rx.c
@@ -754,6 +754,7 @@  typedef union {
   float f;
 } FloatInt;
 
+ATTRIBUTE_UNUSED
 static inline int
 float2int (float f)
 {