From 700b2487491b6cf99e6fd2dece690418865483ff Mon Sep 17 00:00:00 2001
From: Alexander Boettcher <alexander.boettcher@genode-labs.com>
Date: Tue, 15 Oct 2024 10:28:05 +0200
Subject: [PATCH] libc: silent warning for sigaltstack

Issue #5305
---
 repos/libports/src/lib/libc/signal.cc | 5 +----
 1 file changed, 1 insertion(+), 4 deletions(-)

diff --git a/repos/libports/src/lib/libc/signal.cc b/repos/libports/src/lib/libc/signal.cc
index 570c36db3d..76e465d0cc 100644
--- a/repos/libports/src/lib/libc/signal.cc
+++ b/repos/libports/src/lib/libc/signal.cc
@@ -250,10 +250,7 @@ extern "C" int sigaltstack(stack_t const * const ss, stack_t * const old_ss)
 			warning("leaking secondary stack memory");
 
 		} else {
-			if (ss->ss_sp)
-				warning(__func__, " using self chosen stack is not"
-				                  " supported - stack ptr is ignored !!!");
-
+			/* ss->ss_sp is ignored, ever use alloc_secondary stack */
 			void * stack = myself->alloc_secondary_stack("sigaltstack",
 			                                             ss->ss_size);