Skip to content

Commit

Permalink
Merge pull request #3076 from WardF/tiny-cleanup.wif
Browse files Browse the repository at this point in the history
Clean up a couple small things while I'm looking at them.
  • Loading branch information
WardF authored Jan 15, 2025
2 parents 85c8bc8 + 2ef02c0 commit 5887c9e
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 9 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/run_tests_win_cygwin.yml
Original file line number Diff line number Diff line change
Expand Up @@ -91,10 +91,10 @@ jobs:
- name: Upload autoconf test results
uses: actions/upload-artifact@v4
with:
name: cygwin-autotools-test-logs
name: cygwin-autotools-test-logs-${{ github.run_id }}
path: |
*/*.log
*/*.trs
*/*.log
*/*.trs

build-and-test-cmake:
name: Cygwin-based CMake tests
Expand Down
4 changes: 0 additions & 4 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -1649,10 +1649,6 @@ install(FILES ${netCDF_BINARY_DIR}/netcdf.pc
##
print_conf_summary()

# Enable Makedist files.
ADD_MAKEDIST()
ENABLE_MAKEDIST(README.md COPYRIGHT RELEASE_NOTES.md INSTALL INSTALL.cmake test_prog.c lib_flags.am cmake CMakeLists.txt COMPILE.cmake.txt config.h.cmake.in cmake_uninstall.cmake.in netcdf-config-version.cmake.in netcdf-config.cmake.in FixBundle.cmake.in nc-config.cmake.in configure configure.ac install-sh config.h.in config.sub CTestConfig.cmake.in)

#####
# Configure and print the libnetcdf.settings file.
#####
Expand Down
4 changes: 2 additions & 2 deletions libdap4/d4meta.c
Original file line number Diff line number Diff line change
Expand Up @@ -893,7 +893,7 @@ decodeEconst(NCD4meta* builder, NCD4node* enumtype, const char* nameorval, union
{
size_t i;
int ret = NC_NOERR;
union ATOMICS number;
union ATOMICS number = {0};
NCD4node* match = NULL;

/* First, see if the value is an econst name */
Expand All @@ -902,7 +902,7 @@ decodeEconst(NCD4meta* builder, NCD4node* enumtype, const char* nameorval, union
if(strcmp(ec->name,nameorval)==0) {match = ec; break;}
}
/* If no match, try to invert as a number to see if there is a matching econst */
if(!match) {
if(!match && enumtype->en.econsts) {
/* get the incoming value as number */
if((ret=convertString(&number,enumtype->basetype,nameorval)))
goto done;
Expand Down

0 comments on commit 5887c9e

Please sign in to comment.