From patchwork Thu Oct 25 11:04:24 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Carlo_Marcelo_Arenas_Bel=C3=B3n?= X-Patchwork-Id: 10655705 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id C849114E2 for ; Thu, 25 Oct 2018 11:04:59 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id B7E0A2B179 for ; Thu, 25 Oct 2018 11:04:59 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id A99262B6C3; Thu, 25 Oct 2018 11:04:59 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-8.0 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FROM,MAILING_LIST_MULTI,RCVD_IN_DNSWL_HI autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 505292B179 for ; Thu, 25 Oct 2018 11:04:59 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727383AbeJYThN (ORCPT ); Thu, 25 Oct 2018 15:37:13 -0400 Received: from mail-pg1-f194.google.com ([209.85.215.194]:42216 "EHLO mail-pg1-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727206AbeJYThN (ORCPT ); Thu, 25 Oct 2018 15:37:13 -0400 Received: by mail-pg1-f194.google.com with SMTP id i4-v6so3813177pgq.9 for ; Thu, 25 Oct 2018 04:04:57 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=zM1UjEZubv+e7YIl9Uy380SetgArCC9wP6ftrL4cDio=; b=TnqzQJgtihXr+7knvnV0sLMLG3Hcw4sA+nBbCgFO8t7bDF/tu9aDixCHA5ZZKrpapR JFDi1p8zV3QSQby0vHp2KugcHZU+KMDIqPN2B8ViksoxXh9eNSxVtmpCYI4bqpuM5FH+ Iv4uvs+GCTWY7nBARs2iEBZeKmRsEBpe36FPZx4eQrtakeiubOIZRMiG2vIaiEfFpIhE /oezuUWqnglPGtciYmkM/wXujb81NkBwlrtSMmcv7R7jy4TP5zSfflThVoMnPmEqx+8X vl+84YWbymwsehROHK2Q6gB9yTBgGZ1fa4FZVuXaiwp55c0VUIq/xwbSINVj+4MPtV5Q HQuQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=zM1UjEZubv+e7YIl9Uy380SetgArCC9wP6ftrL4cDio=; b=DN8xB8PhKq5OLx4NX53sUikl0OQ4KjVk3nGJuIvSxAsWeuSIXUmc6Tn7gbYbJTIClv 2SIIHoiIha4J0eOdfS1hHZiZxpUoB6gNWHuiOCThR2gLGv9Z67yqBQRDxqiAVt2AHp6H GuywQdo655a9GmK8gQh39YD3HkfchpjHl0S8jOd72JYlq01o/F0Ew3rfPZfhYrbr+TRJ GXZD+gfDOUBGh4J+gWmi0YpEn5nraslEyEv4Q3XmWnk6O0SAoViuHDMGrAo/XHPgFtJ1 5TK9UMCx9uOp05TWSTeqYh7tOTmUJohaLKekNgCQ42bA0MhHidOavjZhkY22W0HXm/l6 4ZDg== X-Gm-Message-State: AGRZ1gKhkpMx268oU5LkPbZ0MFowv6BpczNQNP58Sb4QcPP9UuaClBI1 4ebgJEfdO1zjBu297Dw2/ammohV4fYY= X-Google-Smtp-Source: AJdET5d7/SHKRkBJt+GQ26+HAidFopfe6U8Qi2SiQyVpsRva3GKBjoPP8OboSUWp/voHRCuDuWqALg== X-Received: by 2002:a63:5c16:: with SMTP id q22-v6mr116077pgb.417.1540465496434; Thu, 25 Oct 2018 04:04:56 -0700 (PDT) Received: from localhost.localdomain (c-67-188-192-166.hsd1.ca.comcast.net. [67.188.192.166]) by smtp.gmail.com with ESMTPSA id 74-v6sm17545405pfx.182.2018.10.25.04.04.55 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Thu, 25 Oct 2018 04:04:55 -0700 (PDT) From: =?utf-8?q?Carlo_Marcelo_Arenas_Bel=C3=B3n?= To: git@vger.kernel.org Cc: pclouds@gmail.com, peff@peff.net, chriscool@tuxfamily.org, l.s.r@web.de, ramsay@ramsayjones.plus.com, =?utf-8?q?Carlo_Marcelo_Arenas_Bel=C3=B3n?= Subject: [PATCH v3 0/3] delta-islands: avoid unused function messages Date: Thu, 25 Oct 2018 04:04:24 -0700 Message-Id: <20181025110427.13655-1-carenas@gmail.com> X-Mailer: git-send-email 2.19.1 MIME-Version: 1.0 Sender: git-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: git@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP the macro generated code from delta-islands (using khash) triggers some unused function warnings in macOS, OpenBSD and some linux with a newer version of clang because of its use of static functions. Changes from v2: * Relay in the C code including git-compat-util as suggested by Jeff * Commit message cleanup * Make changes hdr-check clean Changes from v1: * Use MAYBE_UNUSED for all cases as suggested by Duy Carlo Marcelo Arenas Belón (3): commit-slab: move MAYBE_UNUSED into git-compat-util khash: silence -Wunused-function in delta-islands from khash commit-slab: missing definitions and forward declarations (hdr-check) commit-slab-impl.h | 4 ++-- commit-slab.h | 2 ++ git-compat-util.h | 2 ++ khash.h | 2 +- 4 files changed, 7 insertions(+), 3 deletions(-)