- Remove config_begin.hpp/config_end.hpp includes in tests to avoid disabling warnings.

- Fixes #30 ("(void) C-cast is a non-portable way of suppressing compiler warnings").
This commit is contained in:
Ion Gaztañaga
2020-10-20 11:28:27 +02:00
parent 01d8832c9e
commit e4c47fcb90
26 changed files with 101 additions and 182 deletions

View File

@ -9,9 +9,6 @@
//
//////////////////////////////////////////////////////////////////////////////
#include <boost/move/detail/config_begin.hpp>
#include <cassert>
//[file_descriptor_def
#include <boost/move/utility_core.hpp>
@ -25,8 +22,8 @@ class file_descriptor
return 1;
}
void operating_system_close_file(int fd)
{ (void)fd; assert(fd != 0); }
void operating_system_close_file(int)
{}
//->
int os_descr_;
@ -88,5 +85,3 @@ int main()
return 0;
}
//]
#include <boost/move/detail/config_end.hpp>