From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 27478 invoked by alias); 14 Jan 2013 20:52:12 -0000 Received: (qmail 27468 invoked by uid 22791); 14 Jan 2013 20:52:10 -0000 X-SWARE-Spam-Status: No, hits=-4.2 required=5.0 tests=AWL,BAYES_00,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FROM,KHOP_RCVD_TRUST,RCVD_IN_DNSWL_LOW,RCVD_IN_HOSTKARMA_YE X-Spam-Check-By: sourceware.org Received: from mail-vc0-f177.google.com (HELO mail-vc0-f177.google.com) (209.85.220.177) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Mon, 14 Jan 2013 20:52:04 +0000 Received: by mail-vc0-f177.google.com with SMTP id m8so3960240vcd.8 for ; Mon, 14 Jan 2013 12:52:03 -0800 (PST) MIME-Version: 1.0 Received: by 10.220.116.17 with SMTP id k17mr11953924vcq.69.1358196723078; Mon, 14 Jan 2013 12:52:03 -0800 (PST) Received: by 10.220.150.82 with HTTP; Mon, 14 Jan 2013 12:52:02 -0800 (PST) Date: Mon, 14 Jan 2013 20:52:00 -0000 Message-ID: Subject: bogus main declaration in gdb.base/label.c From: David Blaikie To: gdb-patches@sourceware.org Content-Type: multipart/mixed; boundary=f46d0435c04c36d4f504d345d1bc X-IsSubscribed: yes 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 X-SW-Source: 2013-01/txt/msg00292.txt.bz2 --f46d0435c04c36d4f504d345d1bc Content-Type: text/plain; charset=ISO-8859-1 Content-length: 336 The declaration of main in gdb.base/label.c is incorrect & fails to compile under Clang: ../../../src/gdb/7.5/gdb/testsuite/gdb.base/label.c:4:1: error: second parameter of 'main' (argument array) must be of type 'char **' main (int argc, char *argv) ^ The attached patch fixes this by adding the missing '*' to the second parameter. --f46d0435c04c36d4f504d345d1bc Content-Type: application/octet-stream; name="gdb-label.diff" Content-Disposition: attachment; filename="gdb-label.diff" Content-Transfer-Encoding: base64 X-Attachment-Id: f_hby1ne930 Content-length: 419 ZGlmZiAtLWdpdCBnZGIvdGVzdHN1aXRlL2dkYi5iYXNlL2xhYmVsLmMgZ2Ri L3Rlc3RzdWl0ZS9nZGIuYmFzZS9sYWJlbC5jCmluZGV4IGY5Y2Q4YzMuLmMx NWUzYmYgMTAwNjQ0Ci0tLSBnZGIvdGVzdHN1aXRlL2dkYi5iYXNlL2xhYmVs LmMKKysrIGdkYi90ZXN0c3VpdGUvZ2RiLmJhc2UvbGFiZWwuYwpAQCAtMSw3 ICsxLDcgQEAKICNpbmNsdWRlIDxzdGRpby5oPgogCiBpbnQKLW1haW4gKGlu dCBhcmdjLCBjaGFyICphcmd2KQorbWFpbiAoaW50IGFyZ2MsIGNoYXIgKiph cmd2KQogewogICBpbnQgaSA9IDA7CiAgIGdvdG8gdGhlcmU7Cg== --f46d0435c04c36d4f504d345d1bc--