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:
Enji Cooper 2015-11-02 01:47:26 +00:00
parent c5a5e42ca1
commit 9a12e28212

View File

@ -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(&notelst);