hishamhm / htop

htop is an interactive text-mode process viewer for Unix systems. It aims to be a better 'top'.
GNU General Public License v2.0
5.83k stars 581 forks source link

Fix gcc10 #981

Open SoapGentoo opened 4 years ago

SoapGentoo commented 4 years ago

Hi @hishamhm GCC 10 switches from -fcommon to -fno-common by default (https://gcc.gnu.org/bugzilla/show_bug.cgi?id=85678), and htop currently fails when building against -fno-common.

I've enabled -fno-common in Travis to emulate GCC 10's behaviour, to catch any future bugs like this.

ginggs commented 4 years ago

See line 1 of CRT.h and linux/LinuxProcess.h :

/* Do not edit this file. It was automatically generated. */