diff options
author | Michael Widenius <monty@askmonty.org> | 2011-02-25 20:35:25 +0200 |
---|---|---|
committer | Michael Widenius <monty@askmonty.org> | 2011-02-25 20:35:25 +0200 |
commit | 9fe6801a98f8519cb712e124b536ffb695ad1088 (patch) | |
tree | 98d1ee22a6e75c982563ae30a749eaabf42be7a0 /extra | |
parent | d46aee702ed79cf536f9fcb1dce68db8ab8b111f (diff) | |
download | mariadb-git-9fe6801a98f8519cb712e124b536ffb695ad1088.tar.gz |
Fixed compiler warnings
cmd-line-utils/readline/complete.c:
Don't ignore value from fwrite()
cmd-line-utils/readline/terminal.c:
Don't ignore value from fwrite()
extra/yassl/taocrypt/include/file.hpp:
Changed prototype to be able to return value from fwrite()
extra/yassl/taocrypt/src/file.cpp:
Return value from fwrite for put()
storage/xtradb/ut/ut0ut.c:
Added casts to remove warnings for not critical usage of fwrite()
Diffstat (limited to 'extra')
-rw-r--r-- | extra/yassl/taocrypt/include/file.hpp | 2 | ||||
-rw-r--r-- | extra/yassl/taocrypt/src/file.cpp | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/extra/yassl/taocrypt/include/file.hpp b/extra/yassl/taocrypt/include/file.hpp index 0f85b46fdb2..e22040f60f0 100644 --- a/extra/yassl/taocrypt/include/file.hpp +++ b/extra/yassl/taocrypt/include/file.hpp @@ -110,7 +110,7 @@ public: word32 size(bool use_current = false); private: - void put(Source&); + size_t put(Source&); FileSink(const FileSink&); // hide FileSink& operator=(const FileSink&); // hide diff --git a/extra/yassl/taocrypt/src/file.cpp b/extra/yassl/taocrypt/src/file.cpp index 0498038a04b..88ead8e550e 100644 --- a/extra/yassl/taocrypt/src/file.cpp +++ b/extra/yassl/taocrypt/src/file.cpp @@ -98,9 +98,9 @@ FileSink::~FileSink() // fill source from file sink -void FileSink::put(Source& source) +size_t FileSink::put(Source& source) { - fwrite(source.get_buffer(), 1, source.size(), file_); + return fwrite(source.get_buffer(), 1, source.size(), file_); } |