#At file:///home/svoj/devel/innodb-snapshots/mysql-5.1-bugteam/ based on revid:svoj@stripped
3538 Sergey Vojtovich 2010-04-01
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)).
modified:
storage/innodb_plugin/include/sync0rw.h
storage/innodb_plugin/include/sync0sync.h
=== modified file 'storage/innodb_plugin/include/sync0rw.h'
--- a/storage/innodb_plugin/include/sync0rw.h 2009-05-27 09:45:59 +0000
+++ b/storage/innodb_plugin/include/sync0rw.h 2010-04-01 12:54:22 +0000
@@ -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. */
=== modified file 'storage/innodb_plugin/include/sync0sync.h'
--- a/storage/innodb_plugin/include/sync0sync.h 2010-04-01 11:59:25 +0000
+++ b/storage/innodb_plugin/include/sync0sync.h 2010-04-01 12:54:22 +0000
@@ -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
/******************************************************************//**
Attachment: [text/bzr-bundle] bzr/svoj@sun.com-20100401125422-95tqiqwdr0eobu0g.bundle
| Thread |
|---|
| • bzr commit into mysql-5.1-bugteam branch (svoj:3538) | Sergey Vojtovich | 1 Apr |