From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 5A6161395E2 for ; Sun, 27 Nov 2016 18:31:44 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id AD720E0B7E; Sun, 27 Nov 2016 18:31:43 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 835CFE0B7E for ; Sun, 27 Nov 2016 18:31:43 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 636C4341149 for ; Sun, 27 Nov 2016 18:31:42 +0000 (UTC) Received: from localhost.localdomain (localhost [127.0.0.1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id C5BA449C for ; Sun, 27 Nov 2016 18:31:40 +0000 (UTC) From: "Mike Frysinger" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Mike Frysinger" Message-ID: <1480271436.87d6537245b6f7cbf028e4c0e187cda7484729f0.vapier@gentoo> Subject: [gentoo-commits] proj/sandbox:master commit in: libsbutil/ X-VCS-Repository: proj/sandbox X-VCS-Files: libsbutil/sb_gdb.c X-VCS-Directories: libsbutil/ X-VCS-Committer: vapier X-VCS-Committer-Name: Mike Frysinger X-VCS-Revision: 87d6537245b6f7cbf028e4c0e187cda7484729f0 X-VCS-Branch: master Date: Sun, 27 Nov 2016 18:31:40 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Archives-Salt: eb79d2fc-74b9-4c97-9a41-446a0507d84b X-Archives-Hash: a98140bf7666b4b3a6d008134c5fa708 commit: 87d6537245b6f7cbf028e4c0e187cda7484729f0 Author: Guenther Brunthaler gmx net> AuthorDate: Sun Nov 27 18:30:36 2016 +0000 Commit: Mike Frysinger gentoo org> CommitDate: Sun Nov 27 18:30:36 2016 +0000 URL: https://gitweb.gentoo.org/proj/sandbox.git/commit/?id=87d65372 libsbutil: elide sb_maybe_gdb when -DNDEBUG is used Since sb_maybe_gdb is set up as a stub macro, make sure we don't define the function either to cut down on size and build failures (when the macro tries to expand the function prototype). URL: https://bugs.gentoo.org/600550 libsbutil/sb_gdb.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/libsbutil/sb_gdb.c b/libsbutil/sb_gdb.c index 6112379..021a3c4 100644 --- a/libsbutil/sb_gdb.c +++ b/libsbutil/sb_gdb.c @@ -62,6 +62,7 @@ void sb_gdb(void) } } +#ifndef NDEBUG void sb_maybe_gdb(void) { if (is_env_on("SANDBOX_GDB")) { @@ -69,3 +70,4 @@ void sb_maybe_gdb(void) sb_gdb(); } } +#endif