Date: Mon, 2 Nov 2015 01:47:26 +0000 (UTC) From: Garrett Cooper <ngie@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r290256 - head/sys/kern Message-ID: <201511020147.tA21lQBp007446@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: ngie Date: Mon Nov 2 01:47:26 2015 New Revision: 290256 URL: https://svnweb.freebsd.org/changeset/base/290256 Log: 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 Modified: head/sys/kern/imgact_elf.c Modified: head/sys/kern/imgact_elf.c ============================================================================== --- head/sys/kern/imgact_elf.c Mon Nov 2 01:29:01 2015 (r290255) +++ head/sys/kern/imgact_elf.c Mon Nov 2 01:47:26 2015 (r290256) @@ -1270,9 +1270,11 @@ __elfN(coredump)(struct thread *td, stru 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);
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201511020147.tA21lQBp007446>