[Liblas-commits] hg: 3 new changesets
liblas-commits at liblas.org
liblas-commits at liblas.org
Mon Aug 23 12:44:54 EDT 2010
changeset 2b82c7cb2edc in /Volumes/Data/www/liblas.org/hg
details: http://hg.liblas.orghg?cmd=changeset;node=2b82c7cb2edc
summary: initialize pos to at least 0
changeset f5a731d063fd in /Volumes/Data/www/liblas.org/hg
details: http://hg.liblas.orghg?cmd=changeset;node=f5a731d063fd
summary: remove ChangeLog
changeset 2446474d3905 in /Volumes/Data/www/liblas.org/hg
details: http://hg.liblas.orghg?cmd=changeset;node=2446474d3905
summary: clean up %lu warnings
diffstat:
CMakeLists.txt | 8 ++++++--
apps/bigtest.cpp | 12 ++++++------
include/liblas/lasfilter.hpp | 2 +-
3 files changed, 13 insertions(+), 9 deletions(-)
diffs (71 lines):
diff -r 6a42963901d9 -r 2446474d3905 CMakeLists.txt
--- a/CMakeLists.txt Mon Aug 23 11:18:04 2010 -0500
+++ b/CMakeLists.txt Mon Aug 23 11:44:40 2010 -0500
@@ -255,7 +255,7 @@
###############################################################################
# Installation commands
-install(FILES AUTHORS ChangeLog COPYING INSTALL LICENSE.txt README.txt
+install(FILES AUTHORS COPYING INSTALL LICENSE.txt README.txt
DESTINATION ${LIBLAS_DATA_DIR}/doc)
###############################################################################
@@ -315,8 +315,12 @@
list(APPEND CPACK_SOURCE_IGNORE_FILES ".hg")
list(APPEND CPACK_SOURCE_IGNORE_FILES "README")
list(APPEND CPACK_SOURCE_IGNORE_FILES "HOWTORELEASE.txt")
-list(APPEND CPACK_SOURCE_IGNORE_FILES "cmake_install.cmake")
+list(APPEND CPACK_SOURCE_IGNORE_FILES "CMakeCache.txt")
+
+list(APPEND CPACK_SOURCE_IGNORE_FILES "CPackConfig.cmake")
+list(APPEND CPACK_SOURCE_IGNORE_FILES "schemas")
+list(APPEND CPACK_SOURCE_IGNORE_FILES ".cmake")
include(CPack)
diff -r 6a42963901d9 -r 2446474d3905 apps/bigtest.cpp
--- a/apps/bigtest.cpp Mon Aug 23 11:18:04 2010 -0500
+++ b/apps/bigtest.cpp Mon Aug 23 11:44:40 2010 -0500
@@ -27,17 +27,17 @@
{
double percentDone = ((double)i)/NPOINTS * 100.0;
if (i % 1000 == 0)
- printf("\b\b\b\b\b\b\b%6.2f%%", percentDone, nMillionPoints);
+ printf("\b\b\b\b\b\b\b%6.2f%%", percentDone);
LASPointH pt = LASPoint_Create();
err = LASPoint_SetX(pt, 0);
- if (err) printf ("For point %d, failed to set point value X\n", i);
+ if (err) printf ("For point %lu, failed to set point value X\n", i);
err = LASPoint_SetY(pt, 0);
- if (err) printf ("For point %d, failed to set point value Y\n", i);
+ if (err) printf ("For point %lu, failed to set point value Y\n", i);
err = LASPoint_SetZ(pt, 0);
- if (err) printf ("For point %d, failed to set point value Z\n", i);
+ if (err) printf ("For point %lu, failed to set point value Z\n", i);
err = LASWriter_WritePoint(writer, pt);
- if (err) printf ("For point %d, failed to WritePoint\n", i);
+ if (err) printf ("For point %lu, failed to WritePoint\n", i);
LASPoint_Destroy(pt);
}
err = LASHeader_SetPointRecordsCount(header, NPOINTS);
@@ -51,5 +51,5 @@
reader = LASReader_Create(OutputName);
header = LASReader_GetHeader(reader);
unsigned long npoints = LASHeader_GetPointRecordsCount(header);
- printf ("\n\nWrote %d, Read %d (testing %d Million (1024 x 1024) Points)\n", NPOINTS, npoints, nMillionPoints);
+ printf ("\n\nWrote %lu, Read %lu (testing %lu Million (1024 x 1024) Points)\n", NPOINTS, npoints, nMillionPoints);
}
diff -r 6a42963901d9 -r 2446474d3905 include/liblas/lasfilter.hpp
--- a/include/liblas/lasfilter.hpp Mon Aug 23 11:18:04 2010 -0500
+++ b/include/liblas/lasfilter.hpp Mon Aug 23 11:44:40 2010 -0500
@@ -242,7 +242,7 @@
bool lte = HasPredicate(filter_string, "<=");
bool eq = HasPredicate(filter_string, "==");
- std::string::size_type pos;
+ std::string::size_type pos=0;
std::string out;
if (gte) // >=
More information about the Liblas-commits
mailing list