summaryrefslogtreecommitdiff
path: root/methods/aptmethod.h
diff options
context:
space:
mode:
authorJulian Andres Klode <julian.klode@canonical.com>2019-02-11 09:36:10 +0100
committerJulian Andres Klode <julian.klode@canonical.com>2019-02-11 09:36:10 +0100
commit38eeaec814307aa0b6dc39ee9119235c13333acf (patch)
tree95876cfdc6bc410349804a7892ed26999a85cfb0 /methods/aptmethod.h
parent08fe18cccff68fbaf35bd3251f37cee524c073f6 (diff)
parent3b169b6d1d2111765f57e2f5e6279e99ae523cde (diff)
Merge tag '1.8.0_rc3'
apt Debian release 1.8.0~rc3
Diffstat (limited to 'methods/aptmethod.h')
-rw-r--r--methods/aptmethod.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/methods/aptmethod.h b/methods/aptmethod.h
index f6613ac3b..02ef04cf9 100644
--- a/methods/aptmethod.h
+++ b/methods/aptmethod.h
@@ -339,11 +339,18 @@ protected:
constexpr const char *str1 = "\n **** Seccomp prevented execution of syscall ";
constexpr const char *str2 = " on architecture ";
constexpr const char *str3 = " ****\n";
+#ifdef __GNUC__
+#pragma GCC diagnostic push
+#pragma GCC diagnostic ignored "-Wunused-result"
+#endif
write(2, str1, strlen(str1));
write(2, buffer, sizeof(buffer));
write(2, str2, strlen(str2));
write(2, COMMON_ARCH, strlen(COMMON_ARCH));
write(2, str3, strlen(str3));
+#ifdef __GNUC__
+#pragma GCC diagnostic pop
+#endif
_exit(31);
};
action.sa_flags = SA_SIGINFO;