🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nntp
Article #87022

Re: Upgrading from 2.6.0rc to 2.6.0

#87022
From: Julien ÉLIE
Date: Mon, 28 Sep 2015 18:23
36 lines
2688 bytes
Hi Wolfgang,

> diff -y --suppress-common-lines ./lib/getmodaddr.c ../inn-2.6.0rc1/lib/getmodaddr.c
> /*  $Id: getmodaddr.c 9911 2015-07-04 21:32:56Z iulius $      |	/*  $Id: getmodaddr.c 9143 2010-10-29 22:39:13Z iulius $
> #pragma GCC diagnostic ignored "-Wformat-nonliteral"	      <
> #pragma GCC diagnostic warning "-Wformat-nonliteral"	      <
> #pragma GCC diagnostic ignored "-Wformat-nonliteral"	      <
> #pragma GCC diagnostic warning "-Wformat-nonliteral"	      <
>
>> I manage to build fine INN on my old Etch with gcc 4.1.2.
>
> This is gcc (GCC) 4.4.7 20120313 (Red Hat 4.4.7-16)
>
> Seems to be a peculiarity in gcc 4.4.x ff.

You can safely remove all these "#pragma GCC diagnostic ignored" and 
"#pragma GCC diagnostic warning" lines in C code.

The following command should do the trick:

sed -i '/^#pragma GCC diagnostic /d' backends/batcher.c 
backends/buffchan.c backends/ninpaths.c frontends/rnews.c innd/site.c 
innfeed/imap_connection.c innfeed/misc.c lib/getmodaddr.c nnrpd/post.c 
tests/tap/basic.c

Does it now buid fine with GCC 4.4.7?

For the next 2.6.1 release, I will prevent these lines from being 
interpreted by old GCC versions.

-- 
Julien ÉLIE

« Acta est fabula. » (Auguste à son lit de mort)

Technical Details
Message-ID: <muc0jt$is6$1@news.trigofacile.com>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.nntp.(19219).mbox.7z!not-for-mail
References: <mu5f1s$sae$1@news.bbs.geek.nz> <mu5ilg$amc$1@news.trigofacile.com> <mu5sql$6eh$1@news.bbs.geek.nz> <mu8314$1l7$1@news.bbs.geek.nz> <mu8ekr$ijq$1@news.trigofacile.com> <m2bncnhgd9.fsf@banana.shacknet.nu> <mu9drk$lfk$1@news.trigofacile.com> <m2y4frqi2t.fsf@banana.shacknet.nu>

Show Full Headers
Complete Article Headers
Message-ID: <muc0jt$is6$1@news.trigofacile.com>
Subject: Re: Upgrading from 2.6.0rc to 2.6.0
Date: Mon, 28 Sep 2015 20:23:56 +0200
From: Julien ÉLIE <iulius@nom-de-mon-site.com.invalid>
References: <mu5f1s$sae$1@news.bbs.geek.nz> <mu5ilg$amc$1@news.trigofacile.com> <mu5sql$6eh$1@news.bbs.geek.nz> <mu8314$1l7$1@news.bbs.geek.nz> <mu8ekr$ijq$1@news.trigofacile.com> <m2bncnhgd9.fsf@banana.shacknet.nu> <mu9drk$lfk$1@news.trigofacile.com> <m2y4frqi2t.fsf@banana.shacknet.nu>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.nntp.(19219).mbox.7z!not-for-mail
Newsgroups: news.software.nntp
Organization: TrigoFACILE -- http://www.trigofacile.com/
Mime-Version: 1.0
Content-Type: text/plain; charset=iso-8859-15; format=flowed
Content-Transfer-Encoding: 8bit
Injection-Date: Mon, 28 Sep 2015 18:23:57 +0000 (UTC)
Injection-Info: news.trigofacile.com; posting-account="julien";
 posting-host="aaubervilliers-651-1-323-87.w83-200.abo.wanadoo.fr:83.200.90.87"; logging-data="19334"; mail-complaints-to="abuse@trigofacile.com"
User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.10; rv:38.0) Gecko/20100101
 Thunderbird/38.2.0
In-Reply-To: <m2y4frqi2t.fsf@banana.shacknet.nu>
X-Received-Body-CRC: 4257331609
X-Received-Bytes: 2724