Browse Source

style

cl-refactor
Dimitry 10 years ago
parent
commit
aaee19c497
  1. 9
      test/boostTest.cpp

9
test/boostTest.cpp

@ -15,8 +15,8 @@
along with cpp-ethereum. If not, see <http://www.gnu.org/licenses/>. along with cpp-ethereum. If not, see <http://www.gnu.org/licenses/>.
*/ */
/** @file boostTest.cpp /** @file boostTest.cpp
* @author Marko Simovic <markobarko@gmail.com> * @author Dimitry Khokhlov <dimitry@ethdev.com>
* @date 2014 * @date 2015
* Stub for generating main boost.test module. * Stub for generating main boost.test module.
* Original code taken from boost sources. * Original code taken from boost sources.
*/ */
@ -39,8 +39,9 @@ std::streambuf* oldCoutStreamBuf;
//Custom Boost Initialization //Custom Boost Initialization
test_suite* init_func( int argc, char* argv[] ) test_suite* init_func( int argc, char* argv[] )
{ {
if (argc == 0) //Required for boost. -nowarning
argv[0] = (char*)"a"; (void) argc;
(void) argv[0];
//restore output for creating test //restore output for creating test
std::cout.rdbuf(oldCoutStreamBuf); std::cout.rdbuf(oldCoutStreamBuf);

Loading…
Cancel
Save