summaryrefslogtreecommitdiffstats
path: root/config/cmake/HDFTests.c
Commit message (Collapse)AuthorAgeFilesLines
* Overhaul CMake LFS support (#4122)Dana Robinson2024-03-121-48/+0
| | | | | | | | | | | | | | | | | | | | | | | | Externally visible: * The HDF_ENABLE_LARGE_FILE option (advanced) has been removed * We no longer run a test program to determine if LFS works, which will help with cross-compiling * On Linux we now unilaterally set -D_LARGEFILE_SOURCE and -D_FILE_OFFSET_BITS=64, regardless of 32/64 bit system. CMake doesn't offer a nice equivalent to AC_SYS_LARGEFILE and since those options do nothing on 64-bit systems, this seems safe and covers all our bases. We don't set -D_LARGEFILE64_SOURCE since we don't use any of the POSIX 64-bit specific API calls like ftello64, as noted above. * We didn't test for LFS support on non-Linux platforms. We've added comments for how LFS should probably be supported on AIX and Solaris, which seem to be alive, though uncommon. PRs would be appreciated if anyone wishes to test this. Internal: * Drops off64_t size checks since this is unused (as in Autotools) * Remove HDF_EXTRA_FLAGS, which is now unused * Remove hack around deprecated LINUX_LFS Fixes #2395
* Remove check for gettimeofday + tz in CMake (#4045)Dana Robinson2024-02-261-23/+0
| | | This is not used in the library
* Many fixes to various compiler warnings (#3124)Sean McBride2023-06-191-2/+2
| | | | | | | | | | | * Fixed various -Wmissing-variable-declarations by adding static keyword * In a few cases, renamed the variable suffix from _g to _s. * Fixed some -Wmissing-variable-declarations by using different declaration macros * Fixed various -Wconditional-uninitialized warnings by just initializing variable to zero * Fixed various -Wcomma warnings * Fixed clang -Wstrict-prototypes warnings * Fixed various -Wunused-variable warnings * Updated some casts to fix the only 3 -Wcast-qual warnings * Fixed the only -Wsometimes-uninitialized warning
* Tidying of configure check C code (#2077)Dana Robinson2022-08-291-67/+71
| | | | | * Tidying of configure check C code * Fixed missing endif removal
* Removes cmake_ext_mod (files moved to cmake) (#2041)Dana Robinson2022-08-191-0/+213
At one time this content was a git submodule shared between several projects but that time has long passed.