summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWill McVicker <willmcvicker@google.com>2022-04-14 10:33:24 -0700
committerWill McVicker <willmcvicker@google.com>2022-04-28 14:15:22 -0700
commite05df957cad76caa7181f460e983f5e0af95c832 (patch)
tree49d3ecd9e8a1974b015fc2bffee56ea793c6aa88
parentfc277072822a5b366f46b7ab4f6d2f6fcf914c68 (diff)
downloadsec_touch-e05df957cad76caa7181f460e983f5e0af95c832.tar.gz
touch/sec: Fix warning caused by not checking return value
sec_ts.c:1879:2: error: ignoring return value of function declared with 'warn_unused_result' attribute [-Werror,-Wunused-result] kfifo_out_peek(&debug_fifo, last_coord, kfifo_size(&debug_fifo)); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Signed-off-by: Will McVicker <willmcvicker@google.com> Change-Id: I46f45e73156b5742a762054e9e70bad957d1b335
-rw-r--r--sec_ts.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/sec_ts.c b/sec_ts.c
index 8b340c6..486dc34 100644
--- a/sec_ts.c
+++ b/sec_ts.c
@@ -1872,11 +1872,12 @@ inline void sec_ts_kfifo_push_coord(struct sec_ts_data *ts, u8 slot)
inline void sec_ts_kfifo_pop_all_coords(struct sec_ts_data *ts)
{
+ int __maybe_unused len;
/*
* Keep coords without pop-out to support different timing
* print-out by each caller.
*/
- kfifo_out_peek(&debug_fifo, last_coord, kfifo_size(&debug_fifo));
+ len = kfifo_out_peek(&debug_fifo, last_coord, kfifo_size(&debug_fifo));
}
inline void sec_ts_debug_dump(struct sec_ts_data *ts)