Actions
Bug #3088
closedrust warning for dhcp on Ubuntu Bionic/Eoan
Status:
Closed
Priority:
Normal
Assignee:
-
Target version:
-
Affected Versions:
Effort:
Difficulty:
Label:
Description
Using latest git - 7ccf14bc60e9d35032c8347a9f337ba5406ca593
rustc -V
rustc 1.36.0 (a53f9df32 2019-07-03)
git clone https://github.com/OISF/suricata.git && cd suricata && git clone https://github.com/OISF/libhtp.git -b 0.5.x && \
./autogen.sh \
&& ./configure CFLAGS="-ggdb -O0" \
--enable-unittests --enable-debug --enable-profiling \
--enable-nfqueue --enable-nflog \
--enable-lua --disable-gccmarch-native --enable-hiredis --enable-geoip \
&& make
..
..
Writing ./gen/c-headers/rust-snmp-snmp-gen.h
Writing ./gen/c-headers/rust-snmp-log-gen.h
cd ../rust && \
CARGO_HOME=/root/.cargo \
CARGO_TARGET_DIR=/suricata/rust/target \
/root/.cargo/bin/cargo build \
--features "lua debug"
Updating crates.io index
Downloaded kerberos-parser v0.2.0
Downloaded der-parser v1.1.1
Downloaded ipsec-parser v0.4.1
Downloaded crc v1.8.1
Downloaded ntp-parser v0.3.0
Downloaded snmp-parser v0.3.0
Downloaded nom v4.2.3
Downloaded rusticata-macros v1.1.0
Downloaded build_const v0.2.1
Downloaded memchr v2.2.1
Downloaded version_check v0.1.5
Compiling version_check v0.1.5
Compiling memchr v2.2.1
Compiling build_const v0.2.1
Compiling crc v1.8.1
Compiling nom v4.2.3
Compiling rusticata-macros v1.1.0
Compiling ntp-parser v0.3.0
Compiling der-parser v1.1.1
Compiling ipsec-parser v0.4.1
Compiling snmp-parser v0.3.0
Compiling kerberos-parser v0.2.0
Compiling suricata v5.0.0-dev (/suricata/rust)
warning: variable does not need to be mutable
--> src/dhcp/parser.rs:202:17
|
202 | let mut malformed_options = false;
| ----^^^^^^^^^^^^^^^^^
| |
| help: remove this `mut`
|
= note: #[warn(unused_mut)] on by default
Finished dev [unoptimized + debuginfo] target(s) in 45.99s
make[2]: Leaving directory '/suricata/rust'
Making all in src
make[2]: Entering directory '/suricata/src'
CC alert-debuglog.o
CC alert-fastlog.o
CC alert-prelude.o
CC alert-syslog.o
Updated by Victor Julien over 6 years ago
- Is duplicate of Bug #3072: Rust nightly warning added
Actions