summaryrefslogtreecommitdiff
path: root/sal/inc
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2011-07-21 13:12:55 +0100
committerCaolán McNamara <caolanm@redhat.com>2011-07-21 13:12:55 +0100
commit1bc4f349b83b0415f1f9057d36ac4effbd6aa577 (patch)
tree2e2cdaaae292fdd1641ccd3d96c81ed1ddbdcfc6 /sal/inc
parent4f6b6da8e99c7ad0d37952e93b76d208ac513891 (diff)
use SAL_WARN_UNUSED_RESULT
Diffstat (limited to 'sal/inc')
-rw-r--r--sal/inc/osl/file.h2
-rw-r--r--sal/inc/osl/file.hxx2
-rw-r--r--sal/inc/sal/types.h2
3 files changed, 3 insertions, 3 deletions
diff --git a/sal/inc/osl/file.h b/sal/inc/osl/file.h
index bdb7693f5..b90ea3548 100644
--- a/sal/inc/osl/file.h
+++ b/sal/inc/osl/file.h
@@ -732,7 +732,7 @@ oslFileError SAL_CALL osl_openFile( rtl_uString *pustrFileURL, oslFileHandle *pH
@see osl_getFilePos()
*/
-oslFileError SAL_CALL osl_setFilePos( oslFileHandle Handle, sal_uInt32 uHow, sal_Int64 uPos );
+oslFileError SAL_CALL osl_setFilePos( oslFileHandle Handle, sal_uInt32 uHow, sal_Int64 uPos ) SAL_WARN_UNUSED_RESULT;
/** Retrieve the current position of the internal pointer of an open file.
diff --git a/sal/inc/osl/file.hxx b/sal/inc/osl/file.hxx
index e75b59160..df57e24ff 100644
--- a/sal/inc/osl/file.hxx
+++ b/sal/inc/osl/file.hxx
@@ -988,7 +988,7 @@ public:
@see getPos()
*/
- inline RC setPos( sal_uInt32 uHow, sal_Int64 uPos )
+ inline RC setPos( sal_uInt32 uHow, sal_Int64 uPos ) SAL_WARN_UNUSED_RESULT
{
return (RC) osl_setFilePos( _pData, uHow, uPos );
}
diff --git a/sal/inc/sal/types.h b/sal/inc/sal/types.h
index c1922ea99..33ff2d989 100644
--- a/sal/inc/sal/types.h
+++ b/sal/inc/sal/types.h
@@ -302,7 +302,7 @@ typedef void * sal_Handle;
Compilers that support a construct of this nature will emit a compile
time warning on unchecked return value.
*/
-#if (__GNUC__ > 3 || (__GNUC__ == 3 && __GNUC_MINOR__ >= 4)
+#if (__GNUC__ > 3 || (__GNUC__ == 3 && __GNUC_MINOR__ >= 4))
# define SAL_WARN_UNUSED_RESULT __attribute__((warn_unused_result))
#else
# define SAL_WARN_UNUSED_RESULT