Newer gcc swallow version control keywords

Newer gcc swallow version control keywords

Shachar Shemesh shachar at shemesh.biz
Mon Oct 17 22:26:03 IST 2011


On 10/17/2011 06:29 PM, Oleg Goldshmidt wrote:
> Hi,
>
> I have a gcc-related question. Problematic platform is Fedora 15 with
> gcc 4.6.1, as well as Fedora 14 with gcc 4.5.1.
>
> I am used to keeping RCS/CVS/SVN keywords (e.g., $Id$) in all my code.
> In the case of C/C++ this normally amounts to
>
> static const char foo_src_id[] = "$Id$";
Leaving aside the question of whether that is a good idea - did you try
changing that to:
static const volatile char foo_src_id[] = "$Id$";
?

Shachar


-- 
Shachar Shemesh
Lingnu Open Source Consulting Ltd.
http://www.lingnu.com

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.cs.huji.ac.il/pipermail/linux-il/attachments/20111017/2b268485/attachment-0001.html>


More information about the Linux-il mailing list