Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix three compiler warnings #49

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 4 additions & 2 deletions src/findpts_imp.h
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,6 @@
#define findpts_free TOKEN_PASTE(PREFIXED_NAME(findpts_free_ ),D)
#define findpts TOKEN_PASTE(PREFIXED_NAME(findpts_ ),D)
#define findpts_eval TOKEN_PASTE(PREFIXED_NAME(findpts_eval_ ),D)
#define findpts_local_eval TOKEN_PASTE(PREFIXED_NAME(findpts_local_eval_ ),D)
#define setup_fev_aux TOKEN_PASTE(setup_fev_aux_,D)

struct hash_data {
Expand Down Expand Up @@ -279,7 +278,10 @@ void findptsms( uint *const code_base, const unsigned code
const uint *const session_id_match, const uint npt,
struct findpts_data *const fd)
{
if (fd->fevsetup==1) array_free(&fd->savpt); fd->fevsetup=0;
if (fd->fevsetup==1) {
array_free(&fd->savpt);
fd->fevsetup=0;
}
const uint np = fd->cr.comm.np, id=fd->cr.comm.id;
struct array hash_pt, src_pt, out_pt;
double *distv = tmalloc(double,npt);
Expand Down
2 changes: 1 addition & 1 deletion src/findpts_local_imp.h
Original file line number Diff line number Diff line change
Expand Up @@ -466,7 +466,7 @@ void findpts_local_eval(
const uint npt,
const double *const in, struct findpts_local_data *const fd)
{
findpts_local_eval(
findptsms_local_eval(
out_base,out_stride,
el_base,el_stride,
r_base,r_stride,
Expand Down