diff options
author | Niall Douglas (s [underscore] sourceforge {at} nedprod [dot] com) <spamtrap@nedprod.com> | 2016-08-10 10:28:37 +0300 |
---|---|---|
committer | Niall Douglas (s [underscore] sourceforge {at} nedprod [dot] com) <spamtrap@nedprod.com> | 2016-08-10 10:28:37 +0300 |
commit | 730cdcd613f0de15b7f0f8402f02541516116614 (patch) | |
tree | c663d9131882bbdcf91e0ca888db689dbe868163 | |
parent | dc8e780bb936ee2deb7acc997819caff16fb881c (diff) |
Fix unused variable warnings
-rw-r--r-- | Readme.md | 6 | ||||
-rw-r--r-- | include/boost/afio/v2.0/detail/impl/windows/import.hpp | 9 | ||||
m--------- | test/kerneltest | 0 |
3 files changed, 9 insertions, 6 deletions
@@ -4,12 +4,10 @@ v2 rewrite. You can view its documentation at https://ned14.github.io/boost.afio <b>master branch test status</b> Linux: [![Build Status](https://travis-ci.org/ned14/boost.afio.svg?branch=master)](https://travis-ci.org/ned14/boost.afio) Windows: [![Build status](https://ci.appveyor.com/api/projects/status/ox59o2r276xbmef7/branch/master?svg=true)](https://ci.appveyor.com/project/ned14/boost-afio/branch/master) Coverage: Boost.KernelTest support for coveralls.io still todo <b>CMake dashboard</b>: http://my.cdash.org/index.php?project=Boost.AFIO CMake todos: -- Add doxygen generation support - - Get travis to push latest doxygen docs to github for me -- Push artifacts to: - - curl --data-binary @test.txt https://dedi4.nedprod.com/static/files/upload - For non-embedded config, cmake should stamp git submodule SHAs so I can dispense with the upd method of submodule stamping + - ALSO delete embedded copies when sibling copies found, otherwise it gets +confusing - Any dependency .natvis need to be compiled in! - Rename all ParseProjectVersionFromHpp etc to parse_project_version_from_hpp etc - Static library edition appears to not be encoding extended error code detail? diff --git a/include/boost/afio/v2.0/detail/impl/windows/import.hpp b/include/boost/afio/v2.0/detail/impl/windows/import.hpp index 67fe3c8d..72f7866c 100644 --- a/include/boost/afio/v2.0/detail/impl/windows/import.hpp +++ b/include/boost/afio/v2.0/detail/impl/windows/import.hpp @@ -649,11 +649,13 @@ namespace windows_nt_kernel // disable to prevent accidental usage template <class T> inline result<T> make_errored_result(NTSTATUS e, const char *extended = nullptr) { + (void)e; (void) extended; static_assert(!std::is_same<T, T>::value, "Use make_errored_result_nt<T>(NTSTATUS)."); } template <class T> inline outcome<T> make_errored_outcome(NTSTATUS e, const char *extended = nullptr) { + (void)e; (void) extended; static_assert(!std::is_same<T, T>::value, "Use make_errored_outcome_nt<T>(NTSTATUS)."); } @@ -787,7 +789,8 @@ if(d) \ stl11::chrono::system_clock::time_point end_utc; \ \ -alignas(8) LARGE_INTEGER _timeout = {{0}}; \ +alignas(8) LARGE_INTEGER _timeout; \ +memset(&_timeout, 0, sizeof(_timeout)); \ \ LARGE_INTEGER *timeout = nullptr; \ \ @@ -1077,7 +1080,9 @@ static inline HANDLE CreateFileW_(_In_ LPCTSTR lpFileName, _In_ DWORD dwDesiredA ObjectAttributes.Attributes |= OBJ_CASE_INSENSITIVE; HANDLE ret = INVALID_HANDLE_VALUE; - IO_STATUS_BLOCK isb = {{-1}}; + IO_STATUS_BLOCK isb; + memset(&isb, 0, sizeof(isb)); + isb.Status = -1; dwFlagsAndAttributes &= ~0xfff80000; NTSTATUS ntstat = NtCreateFile(&ret, dwDesiredAccess, &ObjectAttributes, &isb, NULL, dwFlagsAndAttributes, dwShareMode, dwCreationDisposition, flags, NULL, 0); if(STATUS_SUCCESS == ntstat) diff --git a/test/kerneltest b/test/kerneltest -Subproject af58c4b390cd4c95411a6b4b55e00993383742d +Subproject 7f583ce7cc36d2a8baefd3c09445457503614cb |