diff options
author | Sergey Vojtovich <svoj@sun.com> | 2010-04-01 16:54:22 +0400 |
---|---|---|
committer | Sergey Vojtovich <svoj@sun.com> | 2010-04-01 16:54:22 +0400 |
commit | 1a326c951b1ece3522131288f177b75ad6d7a98d (patch) | |
tree | 5e3aa972439865bfc5f6d4221d7f6915f64be45d /storage/innodb_plugin/include | |
parent | e9cd6797bee73ebb2374a5baee1d0172fc0f8f93 (diff) | |
download | mariadb-git-1a326c951b1ece3522131288f177b75ad6d7a98d.tar.gz |
Applying InnoDB snapshot
Detailed revision comments:
r6853 | marko | 2010-03-22 13:35:29 +0200 (Mon, 22 Mar 2010) | 1 line
branches/zip: mutex_own(), rw_lock_own(): Add attribute((warn_unused_result)).
Diffstat (limited to 'storage/innodb_plugin/include')
-rw-r--r-- | storage/innodb_plugin/include/sync0rw.h | 3 | ||||
-rw-r--r-- | storage/innodb_plugin/include/sync0sync.h | 3 |
2 files changed, 4 insertions, 2 deletions
diff --git a/storage/innodb_plugin/include/sync0rw.h b/storage/innodb_plugin/include/sync0rw.h index aedfd5f3f86..630f6c30138 100644 --- a/storage/innodb_plugin/include/sync0rw.h +++ b/storage/innodb_plugin/include/sync0rw.h @@ -429,8 +429,9 @@ ibool rw_lock_own( /*========*/ rw_lock_t* lock, /*!< in: rw-lock */ - ulint lock_type); /*!< in: lock type: RW_LOCK_SHARED, + ulint lock_type) /*!< in: lock type: RW_LOCK_SHARED, RW_LOCK_EX */ + __attribute__((warn_unused_result)); #endif /* UNIV_SYNC_DEBUG */ /******************************************************************//** Checks if somebody has locked the rw-lock in the specified mode. */ diff --git a/storage/innodb_plugin/include/sync0sync.h b/storage/innodb_plugin/include/sync0sync.h index b93a8d1c080..d470b823fc3 100644 --- a/storage/innodb_plugin/include/sync0sync.h +++ b/storage/innodb_plugin/include/sync0sync.h @@ -206,7 +206,8 @@ UNIV_INTERN ibool mutex_own( /*======*/ - const mutex_t* mutex); /*!< in: mutex */ + const mutex_t* mutex) /*!< in: mutex */ + __attribute__((warn_unused_result)); #endif /* UNIV_DEBUG */ #ifdef UNIV_SYNC_DEBUG /******************************************************************//** |