Skip to content

Commit

Permalink
fix -Wformat-security
Browse files Browse the repository at this point in the history
  • Loading branch information
zhengxwen committed Jan 20, 2024
1 parent 6dbc245 commit 19af345
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 4 deletions.
4 changes: 2 additions & 2 deletions DESCRIPTION
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@ Package: SNPRelate
Type: Package
Title: Parallel Computing Toolset for Relatedness and Principal Component
Analysis of SNP Data
Version: 1.36.0
Date: 2023-10-26
Version: 1.36.1
Date: 2024-01-19
Depends: R (>= 2.15), gdsfmt (>= 1.8.3)
LinkingTo: gdsfmt
Imports: methods
Expand Down
8 changes: 8 additions & 0 deletions NEWS
Original file line number Diff line number Diff line change
@@ -1,3 +1,11 @@
CHANGES IN VERSION 1.36.1
-------------------------

UTILITIES

o fix the compiler warning: -Wformat-security


CHANGES IN VERSION 1.34.0
-------------------------

Expand Down
2 changes: 1 addition & 1 deletion src/ConvToGDS.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -273,7 +273,7 @@ class COREARRAY_DLL_LOCAL CReadLine
GDS_SetError(buf); \
has_error = true; \
}); \
if (has_error) error(GDS_GetError()); \
if (has_error) Rf_error("%s", GDS_GetError()); \
return rv_ans;


Expand Down
2 changes: 1 addition & 1 deletion src/genPCA.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -745,7 +745,7 @@ class COREARRAY_DLL_LOCAL CRandomPCA
if (verbose)
{
Rprintf("%s Begin projecting genotypes and SVD (%d x %d)\n",
TimeToStr(), hsize, nSNP);
TimeToStr(), (int)hsize, (int)nSNP);
}

// SVD MatH, get vt stored in MatH
Expand Down

0 comments on commit 19af345

Please sign in to comment.