From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 4884 invoked by alias); 25 Aug 2014 19:44:29 -0000 Mailing-List: contact gdb-patches-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sourceware.org Received: (qmail 4874 invoked by uid 89); 25 Aug 2014 19:44:28 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-2.9 required=5.0 tests=AWL,BAYES_00,RCVD_IN_DNSWL_LOW,RP_MATCHES_RCVD,SPF_PASS autolearn=ham version=3.3.2 X-HELO: mail-ig0-f201.google.com Received: from mail-ig0-f201.google.com (HELO mail-ig0-f201.google.com) (209.85.213.201) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (AES128-SHA encrypted) ESMTPS; Mon, 25 Aug 2014 19:44:27 +0000 Received: by mail-ig0-f201.google.com with SMTP id h3so502325igd.2 for ; Mon, 25 Aug 2014 12:44:25 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:subject:date:message-id:mime-version :content-type; bh=v3ZsBm/R9MpRNI5Cqr7re0eQzVf+hXhNuI82Sabp/Ic=; b=ZynXr24wm3NlzG3rwZluG5Vm3hWh309wjmPtdbCCM7PFdRXJu+bqEqqPOjxU4zcEie Gqa1hgmdHQMXzEVxA0sIyZxp4yW8Izs4g4FDv9/mlT/z+MkIk38hEZWeAiztNWJNOZfN X+osu7gpuEdU+inwoW8xaA1Nj8xoUHCHU0ZVAn/ThXAFJx5ACyTSm1NrD4rAlYToRFfr ei9rxU5Je+PCSoZ/O7U4vgshIGtkM/shmdZIQ/DlpsHlo58WPjqq/DFt2wtvvXG9UGuq Qt4xA6XSHA37IGKnDbmQ+vW6zB/5/EKNBNfWDTNmFxTgzNzI6rmW5W9cXYszzWQOK4Ee gzUg== X-Gm-Message-State: ALoCoQkEdmU85l/8Fqzmjf7UDTOzsWdkL3KWB4iPUieY4P1RDIfuQpohYpULuVEQP1JOgiuZW/IFDE9HJjY7KioE+x3wDcQShLInE5pQ1grtBimgHoC5LnOeklQ50a81AbtlZo8K7NjK X-Received: by 10.50.117.10 with SMTP id ka10mr11409905igb.1.1408995865490; Mon, 25 Aug 2014 12:44:25 -0700 (PDT) Received: from corp2gmr1-1.hot.corp.google.com (corp2gmr1-1.hot.corp.google.com [172.24.189.92]) by gmr-mx.google.com with ESMTPS id m14si52274yhm.7.2014.08.25.12.44.25 for (version=TLSv1.1 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Mon, 25 Aug 2014 12:44:25 -0700 (PDT) Received: from ruffy.mtv.corp.google.com (ruffy.mtv.corp.google.com [172.17.128.44]) by corp2gmr1-1.hot.corp.google.com (Postfix) with ESMTPS id 352A531C4A6 for ; Mon, 25 Aug 2014 12:44:25 -0700 (PDT) From: Doug Evans To: gdb-patches@sourceware.org Subject: [COMMITTED PATCH] Fix clang compilation errors in gdb.mi/basics.c Date: Mon, 25 Aug 2014 19:44:00 -0000 Message-ID: MIME-Version: 1.0 Content-Type: text/plain X-IsSubscribed: yes X-SW-Source: 2014-08/txt/msg00522.txt.bz2 Hi. This patch gets a few more tests working with clang. gdb compile failed, ../../../binutils-gdb/gdb/testsuite/gdb.mi/basics.c:32:1: warning: type specifier missing, defaults to 'int' [-Wimplicit-int] callee3 (char *strarg) ^ ../../../binutils-gdb/gdb/testsuite/gdb.mi/basics.c:35:1: warning: control reaches end of non-void function [-Wreturn-type] } ^ ... 2014-08-25 Doug Evans * gdb.mi/basics.c (callee3, callee2, callee1): Specify result type. (main): Ditto. diff --git a/gdb/testsuite/gdb.mi/basics.c b/gdb/testsuite/gdb.mi/basics.c index 0a4f9de..0eabcd1 100644 --- a/gdb/testsuite/gdb.mi/basics.c +++ b/gdb/testsuite/gdb.mi/basics.c @@ -29,17 +29,17 @@ int callee4 (void) C = A + B; return 0; } -callee3 (char *strarg) +void callee3 (char *strarg) { callee4 (); } -callee2 (int intarg, char *strarg) +void callee2 (int intarg, char *strarg) { callee3 (strarg); } -callee1 (int intarg, char *strarg, double fltarg) +void callee1 (int intarg, char *strarg, double fltarg) { callee2 (intarg, strarg); } @@ -57,7 +57,7 @@ void do_nothing (void) { } -main () +int main () { callee1 (2, "A string argument.", 3.5); callee1 (2, "A string argument.", 3.5);