mirror of
https://github.com/opnsense/src.git
synced 2026-07-16 22:37:15 -04:00
Define compress in __elfN(coredump) when #ifdef GZIO is true to mute
an -Wunused-but-set-variable warning Reported by: FreeBSD_HEAD_amd64_gcc4.9 jenkins job Sponsored by: EMC / Isilon Storage Division
This commit is contained in:
parent
c5a5e42ca1
commit
9a12e28212
1 changed files with 2 additions and 0 deletions
|
|
@ -1270,9 +1270,11 @@ __elfN(coredump)(struct thread *td, struct vnode *vp, off_t limit, int flags)
|
|||
struct note_info *ninfo;
|
||||
void *hdr, *tmpbuf;
|
||||
size_t hdrsize, notesz, coresize;
|
||||
#ifdef GZIO
|
||||
boolean_t compress;
|
||||
|
||||
compress = (flags & IMGACT_CORE_COMPRESS) != 0;
|
||||
#endif
|
||||
hdr = NULL;
|
||||
tmpbuf = NULL;
|
||||
TAILQ_INIT(¬elst);
|
||||
|
|
|
|||
Loading…
Reference in a new issue