Added some support for GCC 5+.
This commit is contained in:
@@ -130,9 +130,9 @@ typedef AutoLocker<spinlock, SpinLocking> SpinLocker;
|
||||
|
||||
class InterruptsSpinLocking {
|
||||
public:
|
||||
// NOTE: work-around for annoying GCC 4 "fState may be used uninitialized"
|
||||
// NOTE: work-around for annoying GCC 4+ "fState may be used uninitialized"
|
||||
// warning.
|
||||
#if __GNUC__ == 4
|
||||
#if __GNUC__ >= 4
|
||||
InterruptsSpinLocking()
|
||||
:
|
||||
fState(0)
|
||||
|
||||
Reference in New Issue
Block a user