04-18-2023, 12:19 AM
Hello, I am installing hcxdumptool and it gives me the following error
<pre>cc -O3 -Wall -Wextra -std=gnu99 -o hcxdumptool hcxdumptool.c -DVERSION_TAG=\"6.2.9-107-gd7a673c\" -DVERSION_YEAR=\"2023\" -DSTATUSOUT -DNMEAOUT
<b>hcxdumptool.c:</b> In function ‘<b>nl_scanloop</b>’:
<b>hcxdumptool.c:2616:25:</b> <font color="#D33682"><b>warning: </b></font>ignoring return value of ‘<b>read</b>’ declared with attribute ‘<b>warn_unused_result</b>’ [<font color="#D33682"><b>-Wunused-result</b></font>]
2616 | <font color="#D33682"><b>read(fd_timer1, &timer1count, sizeof(u64))</b></font>;
| <font color="#D33682"><b>^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~</b></font>
<b>hcxdumptool.c:</b> In function ‘<b>show_realtime</b>’:
<b>hcxdumptool.c:548:1:</b> <font color="#D33682"><b>warning: </b></font>ignoring return value of ‘<b>system</b>’ declared with attribute ‘<b>warn_unused_result</b>’ [<font color="#D33682"><b>-Wunused-result</b></font>]
548 | <font color="#D33682"><b>system("clear"</b></font>;
| <font color="#D33682"><b>^~~~~~~~~~~~~~~</b></font>
<b>hcxdumptool.c:</b> In function ‘<b>nl_scanloop_rca</b>’:
<b>hcxdumptool.c:2701:25:</b> <font color="#D33682"><b>warning: </b></font>ignoring return value of ‘<b>read</b>’ declared with attribute ‘<b>warn_unused_result</b>’ [<font color="#D33682"><b>-Wunused-result</b></font>]
2701 | <font color="#D33682"><b>read(fd_timer1, &timer1count, sizeof(u64))</b></font>;
| <font color="#D33682"><b>^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~</b></font>
<b>hcxdumptool.c:</b> In function ‘<b>show_realtime_rca</b>’:
<b>hcxdumptool.c:509:1:</b> <font color="#D33682"><b>warning: </b></font>ignoring return value of ‘<b>system</b>’ declared with attribute ‘<b>warn_unused_result</b>’ [<font color="#D33682"><b>-Wunused-result</b></font>]
509 | <font color="#D33682"><b>system("clear"</b></font>;
| <font color="#D33682"><b>^~~~~~~~~~~~~~~</b></font>
</pre>
<pre>cc -O3 -Wall -Wextra -std=gnu99 -o hcxdumptool hcxdumptool.c -DVERSION_TAG=\"6.2.9-107-gd7a673c\" -DVERSION_YEAR=\"2023\" -DSTATUSOUT -DNMEAOUT
<b>hcxdumptool.c:</b> In function ‘<b>nl_scanloop</b>’:
<b>hcxdumptool.c:2616:25:</b> <font color="#D33682"><b>warning: </b></font>ignoring return value of ‘<b>read</b>’ declared with attribute ‘<b>warn_unused_result</b>’ [<font color="#D33682"><b>-Wunused-result</b></font>]
2616 | <font color="#D33682"><b>read(fd_timer1, &timer1count, sizeof(u64))</b></font>;
| <font color="#D33682"><b>^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~</b></font>
<b>hcxdumptool.c:</b> In function ‘<b>show_realtime</b>’:
<b>hcxdumptool.c:548:1:</b> <font color="#D33682"><b>warning: </b></font>ignoring return value of ‘<b>system</b>’ declared with attribute ‘<b>warn_unused_result</b>’ [<font color="#D33682"><b>-Wunused-result</b></font>]
548 | <font color="#D33682"><b>system("clear"</b></font>;
| <font color="#D33682"><b>^~~~~~~~~~~~~~~</b></font>
<b>hcxdumptool.c:</b> In function ‘<b>nl_scanloop_rca</b>’:
<b>hcxdumptool.c:2701:25:</b> <font color="#D33682"><b>warning: </b></font>ignoring return value of ‘<b>read</b>’ declared with attribute ‘<b>warn_unused_result</b>’ [<font color="#D33682"><b>-Wunused-result</b></font>]
2701 | <font color="#D33682"><b>read(fd_timer1, &timer1count, sizeof(u64))</b></font>;
| <font color="#D33682"><b>^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~</b></font>
<b>hcxdumptool.c:</b> In function ‘<b>show_realtime_rca</b>’:
<b>hcxdumptool.c:509:1:</b> <font color="#D33682"><b>warning: </b></font>ignoring return value of ‘<b>system</b>’ declared with attribute ‘<b>warn_unused_result</b>’ [<font color="#D33682"><b>-Wunused-result</b></font>]
509 | <font color="#D33682"><b>system("clear"</b></font>;
| <font color="#D33682"><b>^~~~~~~~~~~~~~~</b></font>
</pre>