]> git.proxmox.com Git - ceph.git/blobdiff - ceph/src/include/coredumpctl.h
update sources to v12.1.2
[ceph.git] / ceph / src / include / coredumpctl.h
index e4424941f4335f9ebc6290420e4fadec5c56a46d..9b0f160e0a397850f7b3309b5a2cf9ebeeb4af94 100644 (file)
@@ -1,3 +1,5 @@
+#pragma once
+
 #ifdef HAVE_SYS_PRCTL_H
 #include <iostream>
 #include <sys/prctl.h>
@@ -34,6 +36,12 @@ struct PrCtl {
     set_dumpable(saved_state);
   }
 };
+
 #else
-struct PrCtl {};
+
+struct PrCtl {
+  // to silence the Wunused-variable warning
+  PrCtl() {}
+};
+
 #endif