Searched hist:10673 (Results 1 - 1 of 1) sorted by relevance

/gem5/src/sim/
H A Deventq.hhdiff 10673:a3cf30302e19 Tue Feb 03 14:25:00 EST 2015 Andreas Sandberg <Andreas.Sandberg@ARM.com> sim: Remove test for non-NULL this in Event

The method Event::initialized() tests if this != NULL as a part of the
expression that tests if an event is initialized. The only case when
this check could be false is if the method is called on a null
pointer, which is illegal and leads to undefined behavior (such as
eating your pets) according to the C++ standard. Because of this,
modern compilers (specifically, recent versions of clang) warn about
this which we treat as an error. This changeset removes the redundant
check to fix said warning.

Completed in 21 milliseconds