From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id 3756EA04FD; Sun, 10 Apr 2022 20:02:15 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 1749E4068C; Sun, 10 Apr 2022 20:02:14 +0200 (CEST) Received: from mail-pl1-f176.google.com (mail-pl1-f176.google.com [209.85.214.176]) by mails.dpdk.org (Postfix) with ESMTP id 9979340685 for ; Sun, 10 Apr 2022 20:02:13 +0200 (CEST) Received: by mail-pl1-f176.google.com with SMTP id f10so12035408plr.6 for ; Sun, 10 Apr 2022 11:02:13 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=networkplumber-org.20210112.gappssmtp.com; s=20210112; h=date:from:to:cc:subject:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=x3pJ2sS97CYRgbf0QEz2atpD9J1iC/uQefFFluyhxwc=; b=pXuw7+RcZqYfonYXPfuuETLtAQToU8bcQ38E03j+G5ThtbCl+WSQ6I6AWLyes43Znq yok6vmjKxPPcC9tzQ1RV/3n5GSttmA1PZIpf5GqT0UsizJYYquBa4oQXhQjevHuy4p0C mVJf1nwTjuzMUXZLkrkMtKvgHVRoSAfQgub3IN22AkTZrBqybaZXWQIs7uGmIYSJ8bWk xRtynQD9IkJG68OnfovTEB1MF5H8NOLhn2wBLQCBNQmVDqXTWTPafPxaqWbFhxc/U+9L +joPgbtscL8WF7LdWWdNeFfEs+1m75XTcgkul4W4A7JeKR+2TOr/JFJb2DaE6Ls9KjDF 8xOw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:date:from:to:cc:subject:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=x3pJ2sS97CYRgbf0QEz2atpD9J1iC/uQefFFluyhxwc=; b=2tDgQKE/Iyb8Cl2/pxZCbXqSAoTU0TlOkgwM+BkAAXnIlTFu8XHGz6AuGPrKnNsqB9 GJ+qPxnwyCMelCktsf3riljfmMqq15AcxW3KbO23K2jSw5b+WWL5gFL7tG+5W5sNjkqE W4vMgjCz8KWNcdWUuvwcyvWYXBbwbIgEoIx3ijOLI6OwrlHTet8OCqP2fGcy+kFmTXEv oUDBpaWw3/j0Yz85dDfeHlAwrIET4jEce4pDrdiRy8H/JOMyLmhiyqe7C53vw4svfuE4 2u13Aoyv220zfW23f0SWY0FoutCNUwmJPNuASnUiearwZ+MsiREKjTGL13F/O0bfR20T iv6w== X-Gm-Message-State: AOAM5311PE65/QwslK78mNFpLJPwRdbq5vxc85npw/cWmCQOiiPXSfDt UBb4Of51mdisKNCNb3gsHjdIDQ== X-Google-Smtp-Source: ABdhPJxXGp/zIn5CBce9YVp0IzPg1dJhkmVl0EIsffiJNMe448TtdmkW8XpOewSeadDPItsrkxo4bw== X-Received: by 2002:a17:90a:f011:b0:1c7:1800:a86d with SMTP id bt17-20020a17090af01100b001c71800a86dmr32703447pjb.175.1649613732453; Sun, 10 Apr 2022 11:02:12 -0700 (PDT) Received: from hermes.local (204-195-112-199.wavecable.com. [204.195.112.199]) by smtp.gmail.com with ESMTPSA id l22-20020a17090aaa9600b001ca7a005620sm17072213pjq.49.2022.04.10.11.02.11 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 10 Apr 2022 11:02:12 -0700 (PDT) Date: Sun, 10 Apr 2022 11:02:10 -0700 From: Stephen Hemminger To: Mattias =?UTF-8?B?UsO2bm5ibG9t?= Cc: , Thomas Monjalon , David Marchand , , , Subject: Re: [RFC 1/3] eal: add macro to warn for unused function return values Message-ID: <20220410110210.337da7b5@hermes.local> In-Reply-To: <20220410135140.161842-1-mattias.ronnblom@ericsson.com> References: <20220410135140.161842-1-mattias.ronnblom@ericsson.com> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org On Sun, 10 Apr 2022 15:51:38 +0200 Mattias R=C3=B6nnblom wrote: > This patch adds a wrapper macro __rte_warn_unused_result for the > warn_unused_result function attribute. >=20 > Marking a function __rte_warn_unused_result will make the compiler > emit a warning in case the caller does not use the function's return > value. >=20 > Signed-off-by: Mattias R=C3=B6nnblom Looks good, but are these attributes compiler specific?