diff options
author | 2023-09-27 12:20:17 -0500 | |
---|---|---|
committer | 2023-09-27 12:56:15 -0500 | |
commit | e6f1926d1b73035f496c7bafe11c5c1da9aba041 (patch) | |
tree | 74d92a4d87a8f042ebbe28287ccf40e5cc1ec1ef /x11-misc/i3blocks-contrib/files | |
parent | xfce-base/xfce4-panel: Bump to 4.19.2 (diff) | |
download | gentoo-e6f1926d1b73035f496c7bafe11c5c1da9aba041.tar.gz gentoo-e6f1926d1b73035f496c7bafe11c5c1da9aba041.tar.bz2 gentoo-e6f1926d1b73035f496c7bafe11c5c1da9aba041.zip |
x11-misc/i3blocks-contrib: fix clang/llvm build
Closes: https://bugs.gentoo.org/832200
Signed-off-by: Ben Kohler <bkohler@gentoo.org>
Diffstat (limited to 'x11-misc/i3blocks-contrib/files')
-rw-r--r-- | x11-misc/i3blocks-contrib/files/i3blocks-contrib-2.0.0-fix-build-on-clang-llvm.patch | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/x11-misc/i3blocks-contrib/files/i3blocks-contrib-2.0.0-fix-build-on-clang-llvm.patch b/x11-misc/i3blocks-contrib/files/i3blocks-contrib-2.0.0-fix-build-on-clang-llvm.patch new file mode 100644 index 000000000000..bf92d791df55 --- /dev/null +++ b/x11-misc/i3blocks-contrib/files/i3blocks-contrib-2.0.0-fix-build-on-clang-llvm.patch @@ -0,0 +1,25 @@ +From 230f42f5bc5ebc44062820bde1e9e40ae0746c00 Mon Sep 17 00:00:00 2001 +From: Corentin Rondier <contact@rondier.io> +Date: Sun, 24 Sep 2023 23:22:58 +0200 +Subject: [PATCH] cpu_usage2: fix build failures on clang/llvm + +Remove a non-standard suffix on a floating-point literal, causing build failures on clang/LLVM + +fixes #504 +--- + cpu_usage2/cpu_usage2.c | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/cpu_usage2/cpu_usage2.c b/cpu_usage2/cpu_usage2.c +index 72709037..483c4c81 100644 +--- a/cpu_usage2/cpu_usage2.c ++++ b/cpu_usage2/cpu_usage2.c +@@ -124,7 +124,7 @@ int main(int argc, char *argv[]) + sleep(t); + total = get_usage(&used); + +- display(label, 100.0D * (used - old_used) / (total - old_total), ++ display(label, 100.0 * (used - old_used) / (total - old_total), + warning, critical, decimals); + fflush(stdout); + old_total = total; |