Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(601)

Unified Diff: base/sequence_checker.h

Issue 2905213002: WARN_UNUSED_RESULT on all Thread/SequenceChecker impls (Closed)
Patch Set: Created 3 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | base/threading/thread_checker.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: base/sequence_checker.h
diff --git a/base/sequence_checker.h b/base/sequence_checker.h
index 20d7f25d73684a16dfd440d130e4dad459962e27..3653fbc92ac8b4eb37c123fa00c7b35f7abb3714 100644
--- a/base/sequence_checker.h
+++ b/base/sequence_checker.h
@@ -5,6 +5,7 @@
#ifndef BASE_SEQUENCE_CHECKER_H_
#define BASE_SEQUENCE_CHECKER_H_
+#include "base/compiler_specific.h"
#include "base/logging.h"
#include "base/sequence_checker_impl.h"
@@ -66,7 +67,7 @@ namespace base {
// above macros) to get the right version for your build configuration.
class SequenceCheckerDoNothing {
public:
- bool CalledOnValidSequence() const { return true; }
+ bool CalledOnValidSequence() const WARN_UNUSED_RESULT { return true; }
void DetachFromSequence() {}
};
« no previous file with comments | « no previous file | base/threading/thread_checker.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698