On Mon, 2014-06-16 at 02:29 +0200, Paul Marques Mota wrote:
> 2014-06-15 1:20 GMT+02:00 Maciej Piechotka 
> <uzytkownik2-re5jqeeqqe8avxtiumw...@public.gmane.org>:
> 
> > On Wed, 2014-06-11 at 16:54 +0800, Nor Jaidi Tuah wrote:
> > > Is there any way to declare a volatile?
> >
> > As a side question - why do you need volatile? In most cases it's not
> > needed (unless you write kernel/driver and do memory based I/O).
> >
> 
> Or unless you write password management code. See
> https://www.securecoding.cert.org/confluence/display/seccode/MSC06-C.+Beware+of+compiler+optimizations
> 
> Regards,

True - there is a few cases where volatile can be used (I know too
little about security to say if using just volatile is ok from standard
POV).  I guess you could reformulate my question into - "in most you
don't need volatile and many programmers use volatile as atomic despite
it does not mean that. Are you sure that your use case is legitimate?".

Regards

Attachment: signature.asc
Description: This is a digitally signed message part

_______________________________________________
vala-list mailing list
vala-list@gnome.org
https://mail.gnome.org/mailman/listinfo/vala-list

Reply via email to