aboutsummaryrefslogtreecommitdiffstats
path: root/debian/patches/gcc10.patch
diff options
context:
space:
mode:
authorGraham Inggs <ginggs@debian.org>2020-07-03 10:13:18 +0200
committerGraham Inggs <ginggs@debian.org>2020-07-03 10:13:18 +0200
commit0fca57be37ff44f7b32d1018d081d297be989e3a (patch)
tree06b316fe3f514459df4ac585c3ff9e3722e01bfc /debian/patches/gcc10.patch
parenta2c98a912e5c37be97db00633743b35b9aca3f55 (diff)
downloaddebian_htop-0fca57be37ff44f7b32d1018d081d297be989e3a.tar.gz
debian_htop-0fca57be37ff44f7b32d1018d081d297be989e3a.tar.bz2
debian_htop-0fca57be37ff44f7b32d1018d081d297be989e3a.zip
Avoid FTBFS with GCC 10
Diffstat (limited to 'debian/patches/gcc10.patch')
-rw-r--r--debian/patches/gcc10.patch35
1 files changed, 35 insertions, 0 deletions
diff --git a/debian/patches/gcc10.patch b/debian/patches/gcc10.patch
new file mode 100644
index 0000000..5487ffb
--- /dev/null
+++ b/debian/patches/gcc10.patch
@@ -0,0 +1,35 @@
+Description: Avoid FTBFS with GCC 10
+ Initialize some pointers in CRT.c so that CRT.h is
+ generated with the appropriate 'extern' keywords
+Bug: https://github.com/hishamhm/htop/issues/986
+Bug-Debian: https://bugs.debian.org/957344
+Author: Graham Inggs <ginggs@debian.org>
+Last-Update: 2020-07-02
+
+--- a/CRT.c
++++ b/CRT.c
+@@ -171,7 +171,7 @@
+
+ int CRT_delay = 0;
+
+-int* CRT_colors;
++int* CRT_colors = NULL;
+
+ int CRT_colorSchemes[LAST_COLORSCHEME][LAST_COLORELEMENT] = {
+ [COLORSCHEME_DEFAULT] = {
+@@ -537,13 +537,13 @@
+
+ int CRT_scrollWheelVAmount = 10;
+
+-char* CRT_termType;
++char* CRT_termType = NULL;
+
+ // TODO move color scheme to Settings, perhaps?
+
+ int CRT_colorScheme = 0;
+
+-void *backtraceArray[128];
++void *backtraceArray[128] = { NULL };
+
+ static void CRT_handleSIGTERM(int sgn) {
+ (void) sgn;

© 2014-2024 Faster IT GmbH | imprint | privacy policy