From patchwork Sat Aug 3 01:55:55 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Rosen Penev X-Patchwork-Id: 1141421 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (mailfrom) smtp.mailfrom=uclibc.org (client-ip=140.211.166.136; helo=silver.osuosl.org; envelope-from=uclibc-bounces@uclibc.org; receiver=) Authentication-Results: ozlabs.org; dmarc=fail (p=none dis=none) header.from=gmail.com Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b="ky75eOwU"; dkim-atps=neutral Received: from silver.osuosl.org (smtp3.osuosl.org [140.211.166.136]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 460nF64j7Pz9sN6 for ; Sat, 3 Aug 2019 11:56:08 +1000 (AEST) Received: from localhost (localhost [127.0.0.1]) by silver.osuosl.org (Postfix) with ESMTP id AE92E20437; Sat, 3 Aug 2019 01:56:03 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from silver.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id exS64u5JU+1c; Sat, 3 Aug 2019 01:56:02 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by silver.osuosl.org (Postfix) with ESMTP id E574120369; Sat, 3 Aug 2019 01:56:01 +0000 (UTC) X-Original-To: uclibc@lists.busybox.net Delivered-To: uclibc@osuosl.org Received: from whitealder.osuosl.org (smtp1.osuosl.org [140.211.166.138]) by ash.osuosl.org (Postfix) with ESMTP id 6DAAF1BF360 for ; Sat, 3 Aug 2019 01:56:01 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by whitealder.osuosl.org (Postfix) with ESMTP id 6AA448773F for ; Sat, 3 Aug 2019 01:56:01 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from whitealder.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id K3vZXpFQLrrL for ; Sat, 3 Aug 2019 01:56:00 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from mail-pg1-f176.google.com (mail-pg1-f176.google.com [209.85.215.176]) by whitealder.osuosl.org (Postfix) with ESMTPS id E88488701C for ; Sat, 3 Aug 2019 01:56:00 +0000 (UTC) Received: by mail-pg1-f176.google.com with SMTP id u17so36900689pgi.6 for ; Fri, 02 Aug 2019 18:56:00 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:subject:date:message-id; bh=/JLGwORd5DSZL7/RwptcP7e15Se72qLYhxpbxOD2xR0=; b=ky75eOwUjuQ9mCTaDYZEf3tqLWo6tlS1UcWFNiagegTZhy2h3u/nLfT1AYQF1E1W31 HOi/waOM6N3GMcVv2G5edGfo+qk7ySr1sc4GfTesVqcwtQClaCCRFPc05BzQFVHNpRGU gfjS7mrPw7bZSuj3CcXa4579+CWHWrhd6Bty9tIXq5Q4mhMerngnxCjzXDJU85fU8lsk 8DhnHgp5PhwQQ4iGqCbFjPjOJYUhHnWbb1en4yjzeKna6tdzRE34Ihn35PAX+WoET2+e o29n8/6jOnCKawDQS5qddN/V+2Y5ISWF2STTpkX1TiiIYfauUVAAKICKwPzCx9qHWJx5 EOfA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:subject:date:message-id; bh=/JLGwORd5DSZL7/RwptcP7e15Se72qLYhxpbxOD2xR0=; b=kaBqxOwsmlvOObPVHLnS43fJVp2SB1O9jDf7VFkWyW1+W1rLx0R7Ht4ecAG+zWVOpA OsmwjSvLuaI7Npq7umSgmgypQAGHk4Lve1gIM5O0v7L84XhrnxKT8QroYs/qWPsqRVJE oDyoR7kgLx7UFom+GzwKOC1xWDGqQ9WY6zn8DmRwox3ZCraGFqX+zFuRBUXQCd4YVqIU IksVCjsdzrczyh2zmM49m0/nw7PLzdYjNq2Aq1h+rEeWRqYwZ3UR76MZlTyMhWjTNJSJ Hi6A2Ut9Bhn7k9R0NcIBB8atXn0D2N0TvBi1d//QX0fk7J7AL/aWFkwejpGhKgbeRFfi F2NA== X-Gm-Message-State: APjAAAVztlQNFv/v31pSREYR8omFnvCUAwD/BAMSGxAsiOxuxuEjUZ6m aNVS9ON08AGLI7T0Zuv22PLVy9riuhw= X-Google-Smtp-Source: APXvYqzOFsS5I86W7qmoP+WAdTjx4NiXpJ42LPeIsL2LpV00W+Hf3J7I9XwHpO03eCrvfA9SfG+7rA== X-Received: by 2002:aa7:9713:: with SMTP id a19mr44538160pfg.64.1564797359918; Fri, 02 Aug 2019 18:55:59 -0700 (PDT) Received: from localhost.localdomain (76-14-106-55.rk.wavecable.com. [76.14.106.55]) by smtp.gmail.com with ESMTPSA id s24sm33424167pgm.3.2019.08.02.18.55.59 for (version=TLS1_3 cipher=AEAD-AES256-GCM-SHA384 bits=256/256); Fri, 02 Aug 2019 18:55:59 -0700 (PDT) From: Rosen Penev To: uclibc@uclibc.org Subject: [PATCH 1/4] include: Remove unnecessary semicolons Date: Fri, 2 Aug 2019 18:55:55 -0700 Message-Id: <20190803015558.4143-1-rosenp@gmail.com> X-Mailer: git-send-email 2.17.1 X-BeenThere: uclibc@uclibc.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "Discussion and development of uClibc \(the embedded C library\)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Errors-To: uclibc-bounces@uclibc.org Sender: "uClibc" Discovered with clang's -Wextra-semi Signed-off-by: Rosen Penev --- include/iterator_base | 4 ++-- include/stack | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/include/iterator_base b/include/iterator_base index 1cae589..e112a7f 100644 --- a/include/iterator_base +++ b/include/iterator_base @@ -139,7 +139,7 @@ namespace std{ public: typedef Iterator iterator_type; - reverse_iterator() : current(){}; + reverse_iterator() : current(){} explicit reverse_iterator(Iterator x) : current(x) { } template reverse_iterator(const reverse_iterator &x) : current(x.base()){} @@ -225,7 +225,7 @@ namespace std{ Container& container; public: typedef Container container_type; - explicit back_insert_iterator(Container& x):container(x) {}; + explicit back_insert_iterator(Container& x):container(x) {} back_insert_iterator& operator=(const typename Container::value_type& value){ container.push_back(value); return *this; diff --git a/include/stack b/include/stack index d4861b3..ea697f1 100644 --- a/include/stack +++ b/include/stack @@ -34,7 +34,7 @@ namespace std{ typedef typename Container::size_type size_type; typedef Container container_type; - explicit stack(const Container& a = Container()) : c(a) { }; + explicit stack(const Container& a = Container()) : c(a) { } bool empty() const { return c.empty(); } size_type size() const { return c.size(); } value_type& top() { return c.back(); }