Skip to content

Commit 82409b2

Browse files
committed
fix compile warnings
1 parent 093eba5 commit 82409b2

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

source/pdal/pdalc_pipeline.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,8 @@ extern "C"
9898
{
9999
if (pipeline)
100100
{
101-
delete pipeline;
101+
Pipeline *ptr = reinterpret_cast<Pipeline *>(pipeline);
102+
delete ptr;
102103
}
103104
}
104105

tests/pdal/test_pdalc_config.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -140,7 +140,7 @@ TEST testPDALVersionInfo(void)
140140
sha1[6] = '\0';
141141
}
142142

143-
sprintf(expected + strlen(version), " (git-version: %s)", sha1);
143+
snprintf(expected + strlen(version), " (git-version: %s)", sha1);
144144

145145
char fullVersion[64];
146146
size = PDALFullVersionString(fullVersion, 64);

0 commit comments

Comments
 (0)