fixed #190 Argument shadowing and Clang pedantic support

This commit is contained in:
Radu Popescu
2015-08-04 12:52:44 +02:00
parent 7e12c5c9df
commit 0affb23560
3 changed files with 7 additions and 4 deletions
+2 -2
View File
@@ -205,8 +205,8 @@ int safe_strerror(
}
public:
StrError(int error_code, char *&buffer, std::size_t buffer_size)
: error_code_(error_code), buffer_(buffer), buffer_size_(buffer_size) {}
StrError(int err_code, char *&buf, std::size_t buf_size)
: error_code_(err_code), buffer_(buf), buffer_size_(buf_size) {}
int run() {
strerror_r(0, 0, ""); // Suppress a warning about unused strerror_r.