groff
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Groff] Automake migration proposal


From: Bertrand Garrigues
Subject: Re: [Groff] Automake migration proposal
Date: Mon, 11 Aug 2014 07:45:07 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3 (gnu/linux)

Hi Dale,

On Sun, Aug 10 2014 at 06:56:40 PM, Dale Snell <address@hidden> wrote:
> I built this branch on my Fedora 19 system, and it seems to work
> fine.  There was one warning during the make phase:
>
> src/libs/libgroff/version.cpp:3:24: warning: ‘Version_string’ initialized and 
> declared ‘extern’ [enabled by default]
>  extern "C" const char *Version_string = "1.22.2";
>                         ^
>
> Frankly, if that's the only warning, I'm more than happy.  Most
> projects I've built have swarms of warnings.

Yes I have this warning too, it is also present on the current master
branch. The warning seems odd to me because extern "C" only indicates
not to mangle the symbol. gcc is happy if we write:

extern "C" const char *Version_string;
const char *Version_string = "1.22.2";

but I'm not sure if it's the proper way to solve this warning.

Regards,

--
Bertrand Garrigues




reply via email to

[Prev in Thread] Current Thread [Next in Thread]