app-laptop/hdapsd: trivial patch to fix the build with gcc-15

I'm doing this one straight to stable because, ultimately, the
stabilization process is that I say to stabilize it. So long as it
builds, this package requires special hardware to actually test, and
it's hardware that hasn't been made for a looooong time.

Closes: https://bugs.gentoo.org/944301
Signed-off-by: Michael Orlitzky <mjo@gentoo.org>
This commit is contained in:
Michael Orlitzky
2024-11-23 22:05:57 -05:00
parent 7415f4b69c
commit 2517c840b2
2 changed files with 26 additions and 2 deletions

View File

@@ -0,0 +1,23 @@
From f74b32c417af940dc1ebb64cde49503253064c28 Mon Sep 17 00:00:00 2001
From: Evgeni Golov <evgeni@golov.de>
Date: Thu, 30 May 2024 17:32:56 +0200
Subject: [PATCH] don't pass argv to usage, it doesn't take any params
thanks clang!
---
src/hdapsd.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/hdapsd.c b/src/hdapsd.c
index 03d21a1..92c6f25 100644
--- a/src/hdapsd.c
+++ b/src/hdapsd.c
@@ -1027,7 +1027,7 @@ int main (int argc, char** argv)
}
if (disklist == NULL)
- usage(argv);
+ usage();
/* Let's see if we're on a ThinkPad or on an *Book */
if (!position_interface)

View File

@@ -1,4 +1,4 @@
# Copyright 1999-2023 Gentoo Authors
# Copyright 1999-2024 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
@@ -13,10 +13,11 @@ SLOT="0"
KEYWORDS="amd64 x86"
IUSE="libconfig"
BDEPEND=""
DEPEND="libconfig? ( dev-libs/libconfig:= )"
RDEPEND="${DEPEND}"
PATCHES=( "${FILESDIR}/${P}-usage-doesnt-take-args.patch" )
pkg_setup() {
# We require the hdaps module which can either come from either the
# kernel itself (CONFIG_SENSORS_HDAPS) or from the tp_smapi package.