Skip to content

Commit

Permalink
Unused variable spotted by clang
Browse files Browse the repository at this point in the history
  • Loading branch information
attipaci committed Nov 29, 2024
1 parent 07c9898 commit 51e820d
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/xchange.c
Original file line number Diff line number Diff line change
Expand Up @@ -318,7 +318,7 @@ int xPrintDims(char *dst, int ndim, const int *sizes) {
int xParseDims(const char *src, int *sizes) {
static const char *fn = "xParseDims";

int ndim, N = 1;
int ndim;
char *next = (char *) src;

if(!src) return x_error(0, EINVAL, fn, "'src' is NULL");
Expand All @@ -337,8 +337,6 @@ int xParseDims(const char *src, int *sizes) {

if(*sizes <= 0) continue; // ignore 0 or negative sizes.

N *= *sizes;

sizes++; // move to the next dimension
ndim++;
}
Expand Down

0 comments on commit 51e820d

Please sign in to comment.