Skip to content

Commit

Permalink
minor changes - avoid warnings (related to #14)
Browse files Browse the repository at this point in the history
  • Loading branch information
wojdyr committed Sep 18, 2021
1 parent f662747 commit a711990
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -205,7 +205,7 @@ fityk/data.cpp fityk/lexer.cpp fityk/runner.cpp fityk/vm.cpp
fityk/eparser.cpp fityk/LMfit.cpp fityk/settings.cpp fityk/voigt.cpp
fityk/f_fcjasym.cpp fityk/logic.cpp fityk/tplate.cpp
fityk/fit.cpp fityk/luabridge.cpp fityk/transform.cpp
fityk/cmpfit/mpfit.c
fityk/cmpfit/mpfit.c fityk/root/background.cpp
${lua_runtime} ${lua_cxx})

if (DOWNLOAD_XYLIB)
Expand Down
2 changes: 1 addition & 1 deletion fityk/root/background.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -453,7 +453,7 @@ std::vector<fityk::Point> ROOT::background(const std::vector<fityk::Point> spect
int i, j, w, bw, b1, b2, priz;
double a, b, c, d, e, yb1, yb2, ai, av, men, b4, c4, d4, e4, b6, c6, d6, e6, f6, g6, b8, c8, d8, e8, f8, g8, h8, i8;

const unsigned int ssize = spectrum.size();
const int ssize = (int) spectrum.size();

if (ssize <= 0)
throw fityk::ExecuteError("Wrong vector size");
Expand Down
2 changes: 1 addition & 1 deletion fityk/transform.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ struct vector_slice {
// It returns the iterators to the begin of the active
// slice (first active datapoint) and to the end of the
// slice (datapoint *after* the last active one).
struct vector_slice<Point> first_active_slice(const vector<Point> &pp,
struct vector_slice<Point> first_active_slice(const vector<Point> &/*pp*/,
vector<Point>::iterator begin,
vector<Point>::iterator end)
{
Expand Down

0 comments on commit a711990

Please sign in to comment.