From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 12819 invoked by alias); 18 Jul 2006 09:48:29 -0000 Received: (qmail 12811 invoked by uid 22791); 18 Jul 2006 09:48:28 -0000 X-Spam-Check-By: sourceware.org Received: from potter.codesourcery.com (HELO mail.codesourcery.com) (65.74.133.4) by sourceware.org (qpsmtpd/0.31) with ESMTP; Tue, 18 Jul 2006 09:48:26 +0000 Received: (qmail 15454 invoked from network); 18 Jul 2006 09:48:24 -0000 Received: from unknown (HELO zigzag.lvk.cs.msu.su) (vladimir@127.0.0.2) by mail.codesourcery.com with ESMTPA; 18 Jul 2006 09:48:24 -0000 From: Vladimir Prus To: gdb-patches@sources.redhat.com Subject: [PATCH] tcomplain and ATTR_NORETURN Date: Tue, 18 Jul 2006 09:48:00 -0000 User-Agent: KMail/1.7.2 MIME-Version: 1.0 Content-Type: Multipart/Mixed; boundary="Boundary-00=_k5KvE3o3Tbz/FzM" Message-Id: <200607181348.20426.vladimir@codesourcery.com> Mailing-List: contact gdb-patches-help@sourceware.org; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sourceware.org X-SW-Source: 2006-07/txt/msg00219.txt.bz2 --Boundary-00=_k5KvE3o3Tbz/FzM Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Content-Disposition: inline Content-length: 278 Hi, the attached patch marks the tcomplain function with ATTR_NORETURN, to avoid compiler warnings in this situation: int whatever { tcomplain(); } OK? - Volodya 2006-07-18 Vladimir Prus * target.c (tcomplain): Mark with ATTR_NORETURN. --Boundary-00=_k5KvE3o3Tbz/FzM Content-Type: text/x-diff; charset="us-ascii"; name="1_tcomplain.diff" Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename="1_tcomplain.diff" Content-length: 316 --- target.c (revision 173) +++ target.c (revision 174) @@ -52,7 +52,7 @@ static int default_region_ok_for_hw_watc static int nosymbol (char *, CORE_ADDR *); -static void tcomplain (void); +static void tcomplain (void) ATTR_NORETURN; static int nomemory (CORE_ADDR, char *, int, int, struct target_ops *); --Boundary-00=_k5KvE3o3Tbz/FzM--