Comments (6)
We do not see these warning, which means
that we are not using the same compiler as you
or are not using the same -W flags.
We would like to fix/suppress these.
Can you tell me which compiler and flags you are using?
=Dennis Heimbigner
Unidata
Nico Schlömer wrote:
The number of build warnings on standard netcdf-c builds is overwhelming. On amd64, we're counting 2911 https://launchpadlibrarian.net/168739307/buildlog_ubuntu-trusty-amd64.netcdf_4.3.1.2~20140316-trusty1_UPLOADING.txt.gz, most of them of the type
conversion to '...' from '...' may alter its value
While all of them seem potentially dangerous, netcdf is the type of software that might actually want to allow this. Consequently, we would either
- fix the warnings, or
- adapt the build script to explicitly turn off the conversion warnings.
Reply to this email directly or view it on GitHub:
#33
from netcdf-c.
The link in the original post shows the make VERBOSE=1
output, so you'll find all flags in there. Specifically, the Ubuntu builds use -Wall -Wno-unused-variable -Wno-unused-parameter -Wconversion
.
I also get those warnings on the most default builds on my Ubuntu 13.10 machine, as well as on travis-ci with Ubuntu 12.04, so I'm a little surprised that you guys don't see them.
from netcdf-c.
I'm not a t my machine currently but there are cmake flags to toggle the conversion warnings. There is also a JIRA issue. I'll post the links when I get home.
from netcdf-c.
Ward-
I am in the process of making a large number
of changes to address some of the conversion
issues (in oc2 anyway).
=Dennis
Ward Fisher wrote:
I'm not a t my machine currently but there are cmake flags to toggle the conversion warnings. There is also a JIRA issue. I'll post the links when I get home.
Reply to this email directly or view it on GitHub:
#33 (comment)
from netcdf-c.
The original JIRA issue is here: https://bugtracking.unidata.ucar.edu/browse/NCF-266
Closing as duplicate.
from netcdf-c.
Incidentally the CMAKE flags to enable these warnings are:
-DENABLE_CONVERSION_WARNINGS
It is ON by default. We haven't found any places where this is causing
an actual problem, but we have been slowly trying to address it
without causing any new issues.
-Ward
On 3/8/14, 11:21 AM, DennisHeimbigner wrote:
We do not see these warning, which means
that we are not using the same compiler as you
or are not using the same -W flags.
We would like to fix/suppress these.
Can you tell me which compiler and flags you are using?
=Dennis Heimbigner
UnidataNico Schlömer wrote:
The number of build warnings on standard netcdf-c builds is
overwhelming. On amd64, we're counting 2911
https://launchpadlibrarian.net/168739307/buildlog_ubuntu-trusty-amd64.netcdf_4.3.1.2~20140316-trusty1_UPLOADING.txt.gz,
most of them of the typeconversion to '...' from '...' may alter its value
While all of them seem potentially dangerous, netcdf is the type of
software that might actually want to allow this. Consequently, we
would either
- fix the warnings, or
- adapt the build script to explicitly turn off the conversion warnings.
Reply to this email directly or view it on GitHub:
#33—
Reply to this email directly or view it on GitHub
#33 (comment).
from netcdf-c.
Related Issues (20)
- documentation should clearly state that start/index/count/stride/map arrays must be the same size as the associated variable
- nczarr_test_run_interop failes with static build
- tst_specific_filters.sh fails from "Testing processing of filter blosc for map nc 10c10" for 4.9.2
- netCDFTargets.cmake and pkgconfig netcdf.pc have wrong hdf5 libraries HOT 1
- pnetcdf.h not found during installation HOT 3
- pnetcdf (still) not found during installation HOT 4
- Documentation on reading unkown dimensions in netCDF-4 misleading HOT 1
- Could not find HDF5 library during install
- build netcdf 4.9.3 with hdf5-1.14.3 in windows using MSVC 2022 using cmake
- Cannot link with libraries: /usr/bin/ld: cannot find -lhwloc /usr/bin/ld: cannot find -levent_core /usr/bin/ld: cannot find -levent_pthreads HOT 2
- Errors relate to HDF5 during 'make check' process: hdf5open.c:873:6: error: use of undeclared identifier 'H5FD_ros3_fapl_t' HOT 11
- ”make check“ Fails at ”nf03_test“ in NetCDF-Fortran Version 4.5.2
- Error compiling `h5_test/tst_h_files4` on MacOS HOT 1
- ConfigPackageLocation needs to be absolute path HOT 4
- netcdf-c 4.9.2 on spack not building
- Add timing info to netcdf-4 logging HOT 2
- Huge memory consumption in chunk-cache after handling several opened netcdf-files with default-chunk-cache configuration HOT 1
- Request: ncdump: Fix printing of UTF-8 in "character" data variables HOT 10
- make check fails for netCDF-C 4.9.2 (Docker) build HOT 7
- Cmake build does not honor CMAKE_INSTALL_MANDIR. HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from netcdf-c.