Skip to content

Commit

Permalink
small fix for cran
Browse files Browse the repository at this point in the history
  • Loading branch information
shajoezhu committed Oct 21, 2018
1 parent 6b98ff8 commit 088cbbd
Show file tree
Hide file tree
Showing 3 changed files with 29 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .DEploid
2 changes: 1 addition & 1 deletion src/DEploid/dEploidIO.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -549,7 +549,7 @@ void DEploidIO::readInitialProportions() {
try {
double tmp = convert<double>(*argv_i);
this->initialProp.push_back(tmp);
} catch (WrongType e) {
} catch (const WrongType &e) {
--argv_i;
break;
}
Expand Down
28 changes: 27 additions & 1 deletion src/DEploid/lasso/dbgmacro.hpp
Original file line number Diff line number Diff line change
@@ -1,6 +1,32 @@
/*
* dEploid is used for deconvoluting Plasmodium falciparum genome from
* mix-infected patient sample. DEploid-Lasso-lib is a submodule for
* choosing the appropriate reference panel using the LASSO algorithm.
*
* Copyright (C) 2018 University of Oxford
*
* Author: Sha (Joe) Zhu
*
* This file is part of DEploid-Lasso-lib.
*
* dEploid is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*
*/

#ifndef NDEBUG
#define dout std::cout << " "
#else
#pragma GCC diagnostic ignored "-Wunused-value"
// #pragma GCC diagnostic ignored "-Wunused-value"
#define dout 0 && std::cout
#endif

0 comments on commit 088cbbd

Please sign in to comment.