diff options
author | Caolán McNamara <caolanm@redhat.com> | 2012-03-21 21:33:04 +0000 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2012-03-22 12:26:41 +0000 |
commit | 1a4276c511240d51e1956d157655d219dc8254fc (patch) | |
tree | 884e5a7f85cf6276d8332bc27d365ea6ecb2c991 /shell | |
parent | WaE: ignoring return value of 'fwrite' (diff) | |
download | core-1a4276c511240d51e1956d157655d219dc8254fc.tar.gz core-1a4276c511240d51e1956d157655d219dc8254fc.zip |
WaE: ignoring lockf return value
Diffstat (limited to 'shell')
-rw-r--r-- | shell/source/unix/sysshell/recently_used_file.cxx | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/shell/source/unix/sysshell/recently_used_file.cxx b/shell/source/unix/sysshell/recently_used_file.cxx index 0336a7f72d57..cf27852b47c0 100644 --- a/shell/source/unix/sysshell/recently_used_file.cxx +++ b/shell/source/unix/sysshell/recently_used_file.cxx @@ -100,7 +100,8 @@ recently_used_file::recently_used_file() : //------------------------------------------------ recently_used_file::~recently_used_file() { - lockf(fileno(file_), F_ULOCK, 0); + int ret = lockf(fileno(file_), F_ULOCK, 0); + SAL_WARN_IF(ret != 0, "shell", "cannot unlock recently unused file"); fclose(file_); } |