From: Derrick Stolee <stolee@gmail.com>
To: Ramsay Jones <ramsay@ramsayjones.plus.com>,
Junio C Hamano <gitster@pobox.com>
Cc: "Đoàn Trần Công Danh" <congdanhqx@gmail.com>,
"Jeff King" <peff@peff.net>,
"GIT Mailing-list" <git@vger.kernel.org>
Subject: Re: Subject: [PATCH] bloom: fix `make sparse` warning
Date: Fri, 8 May 2020 08:15:48 -0400 [thread overview]
Message-ID: <e0594ef1-d471-877b-81d1-980ba47966dc@gmail.com> (raw)
In-Reply-To: <01ff8217-bd38-e7e4-58b1-81645ba9282a@ramsayjones.plus.com>
On 5/7/2020 7:51 PM, Ramsay Jones wrote:
> From: =?UTF-8?q?=C4=90o=C3=A0n=20Tr=E1=BA=A7n=20C=C3=B4ng=20Danh?=
> <congdanhqx@gmail.com>
>
> * We need a `final_new_line` to make our source code as text file, per
> POSIX and C specification.
> * `bloom_filters` should be limited to interal linkage only
>
> Signed-off-by: Đoàn Trần Công Danh <congdanhqx@gmail.com>
> Signed-off-by: Ramsay Jones <ramsay@ramsayjones.plus.com>
> ---
>
> Hi Junio,
>
> This patch by Danh seems to have slipped through the cracks, so I decided
> to pass it along. The original version of this patch (which I don't seem
> to be able to find) clashed with one of Jeff's series [1], because they
> both fixed up a 'No newline at end of file' issue with test-bloom.c.
> Also as Danh points out [2], the original patch didn't fix up the test
> files.
>
> Anyway, this fixes up some 8 sparse warnings on 'master' and 'next':
>
> $ diff sp-out sp-out1
> 17d16
> < bloom.h:90:6: warning: no newline at end of file
> 20,22d18
> < bloom.c:276:1: warning: no newline at end of file
> < bloom.h:90:6: warning: no newline at end of file
> < bloom.c:12:26: warning: symbol 'bloom_filters' was not declared. Should it be static?
> 33d28
> < bloom.h:90:6: warning: no newline at end of file
> 163d157
> < bloom.h:90:6: warning: no newline at end of file
> 366,367d359
> < ./bloom.h:90:6: warning: no newline at end of file
> < t/helper/test-bloom.c:6:30: warning: symbol 'settings' was not declared. Should it be static?
> $
>
> ... along with a further warning on 'pu', due to the 'ds/line-log-on-bloom'
> branch adding another '#include "bloom.h"'.
Thanks for being careful and making sure this gets in.
The patch looks good to me.
-Stolee
prev parent reply other threads:[~2020-05-08 12:16 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-05-07 23:51 Subject: [PATCH] bloom: fix `make sparse` warning Ramsay Jones
2020-05-08 12:15 ` Derrick Stolee [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: http://vger.kernel.org/majordomo-info.html
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=e0594ef1-d471-877b-81d1-980ba47966dc@gmail.com \
--to=stolee@gmail.com \
--cc=congdanhqx@gmail.com \
--cc=git@vger.kernel.org \
--cc=gitster@pobox.com \
--cc=peff@peff.net \
--cc=ramsay@ramsayjones.plus.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://80x24.org/mirrors/git.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).