diff options
author | Will McVicker <willmcvicker@google.com> | 2022-04-14 10:33:24 -0700 |
---|---|---|
committer | Will McVicker <willmcvicker@google.com> | 2022-04-28 14:15:22 -0700 |
commit | e05df957cad76caa7181f460e983f5e0af95c832 (patch) | |
tree | 49d3ecd9e8a1974b015fc2bffee56ea793c6aa88 | |
parent | fc277072822a5b366f46b7ab4f6d2f6fcf914c68 (diff) | |
download | sec_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.c | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -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) |