Re: unset_dumpable

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 





Op 20-7-2017 om 21:20 schreef Patrick Donnelly:
On Thu, Jul 20, 2017 at 7:02 AM, Willem Jan Withagen <wjw@xxxxxxxxxxx> wrote:
Hi,

I'm running in too many:
/home/jenkins/workspace/ceph-master/src/test/bufferlist.cc:490:11:
warning: unused variable 'unset_dumpable' [-Wunused-variable]
     PrCtl unset_dumpable;
           ^

for it to be by accident??
But why is this variable created in about a dozen functions?
AFAICT, the intent by Brad in aef2a7b6ac5d0dafdac16d0d4cef42056c07b5a6
is to prevent core dumps during the lifetime of certain objects. The
object is actually used indirectly via syscalls in its
constructo/destructor.

Is there a nice way of silencing this warning for this code?
I suspected as much as that.

Likely there is a pragma that can be wrapped around the declaration.
And then stick it in a macro, but I'm not sure that pragma will survice a macro.

--WjW


--
To unsubscribe from this list: send the line "unsubscribe ceph-devel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html



[Index of Archives]     [CEPH Users]     [Ceph Large]     [Information on CEPH]     [Linux BTRFS]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]
  Powered by Linux