From mboxrd@z Thu Jan 1 00:00:00 1970 MIME-Version: 1.0 In-Reply-To: <0512e2aede262f37ed92b1d9a8902ad6@quintile.net> References: <0512e2aede262f37ed92b1d9a8902ad6@quintile.net> Date: Wed, 21 Nov 2012 13:30:25 +0000 Message-ID: From: Charles Forsyth To: Fans of the OS Plan 9 from Bell Labs <9fans@9fans.net> Content-Type: text/plain; charset=UTF-8 Subject: Re: [9fans] 8c - is this leagal? Topicbox-Message-UUID: dc6a57d6-ead7-11e9-9d60-3106f5b1d025 static is scope, volatile has dynamic effects, very dynamic. you should be able to #define volatile to nothing (-Dvolatile'=') and it will usually work. certainly for statics and externals. the one real effect it might have is on automatic variables if the usage in conjunction with setjmp is a little strange (straightforward uses are fine with setjmp). On 21 November 2012 13:21, Steve Simon wrote: > Is this legal c code, static and volatile?