From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 53927 invoked by alias); 20 Jun 2018 18:51:15 -0000 Mailing-List: contact gcc-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-owner@gcc.gnu.org Received: (qmail 53913 invoked by uid 89); 20 Jun 2018 18:51:14 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-1.9 required=5.0 tests=AWL,BAYES_00,FREEMAIL_FROM,HTML_MESSAGE,RCVD_IN_DNSWL_NONE,SPF_PASS autolearn=ham version=3.3.2 spammy=H*i:sk:E3mMNQC, H*f:CAKRnqN, H*i:yBGohoJ7vqJqtU, H*f:sk:E3mMNQC X-HELO: mail-io0-f181.google.com Received: from mail-io0-f181.google.com (HELO mail-io0-f181.google.com) (209.85.223.181) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Wed, 20 Jun 2018 18:51:12 +0000 Received: by mail-io0-f181.google.com with SMTP id t6-v6so672954iob.10 for ; Wed, 20 Jun 2018 11:51:12 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to; bh=Qc/Tcdr6g2tRP5A/tAAdbE6em+PzMbrqou8yPYSNW0Q=; b=tKitfIwZlm6T82tJBynIntPnHKBo24/GLEnwd2dBmq49haGJxiZPHprx6q3G/fQsPy Rhr4G/ya03j73iuGwMjSNh0rNtlCqaqw4XJR3BBUohMxarVucl3e9Fu7W9c/ynL60beF xn0eN+Gi5E/Fv8ytTffJjep3mBEkFBq6n29v1V5wlIFd8BpFEjr9sfFggxNB6wVDyPFN BruCue0H7WnSkCYDq+XKsgRJeMTi/25OtWJKrzNzJyVteknNVWOQMZsChmGTvuN1keGq YArdgGRLVBJm/ozD3mpe4pAZrTPB1/4/YOYkt4HvhvP7HcFdhuJSXmYt56mj164v+ViT S3Gg== X-Gm-Message-State: APt69E1kXO4HWmkFn0N1L0cZtw+OTAEBuGNEmgBF9zrVcm09knea+51R I213Era0I7/4+CWqidregiV0Kq7zmj98yEntbZo= X-Google-Smtp-Source: ADUXVKJPCstlNrJaKJn+laauYN3O1C4l4JtVNdQ6+ldQeSUDo3EGsc4Q/EODR6PZldqPArJWn+eskOQi0c4/IcPsR7Y= X-Received: by 2002:a6b:2348:: with SMTP id j69-v6mr19525075ioj.100.1529520671258; Wed, 20 Jun 2018 11:51:11 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: From: Bruce Korb Date: Wed, 20 Jun 2018 18:52:00 -0000 Message-ID: Subject: Re: Next question: sizeof(char buf[2042]) To: GCC List Content-Type: text/plain; charset="UTF-8" X-SW-Source: 2018-06/txt/msg00222.txt.bz2 OK. My mistake. "Nevermind" -- side effect of another change. On Wed, Jun 20, 2018 at 11:47 AM Bruce Korb wrote: > Yeah, I guess this is Clang, but is it a legal interpretation for Clang? > > In file included from gnu-pw-mgr.c:24: > > In file included from ./fwd.h:288: > > *./seed.c:178:43: **warning: **sizeof on pointer operation will return > size of 'const char *' instead of 'const char [2042]'* > > * [-Wsizeof-array-decay]* > > char * tag = scribble_get(sizeof (tag_fmt) + strlen(OPT_ARG(TAG))); > > * ^~~~~~~* > > > *It seems like a pretty brain damaged interpretation.* > > -- > - Bruce > -- - Bruce