Re: [Vala] volatile variable



2014-06-15 1:20 GMT+02:00 Maciej Piechotka <uzytkownik2 gmail com>:

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,
-- 
    Paul


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