This archive contains answers to questions sent to Unidata support through mid-2025. Note that the archive is no longer being updated. We provide the archive for reference; many of the answers presented here remain technically correct, even if somewhat outdated. For the most up-to-date information on the use of NSF Unidata software and data services, please consult the Software Documentation first.
"Sean McBride" <address@hidden> writes: > Hi Ed, > > I recently updated to NetCDF 3.6.1 and everything continues to work > fine. However, I believe a compiler warning was introduced that was not > there in the previous version. See the screenshot. The fix is quite > simple: I just renamed the 'index' parameter to 'indexp'. The shadowed > declaration is index() in string.h. It's most annoying that a global > function named index() exists, because it basically means you can never > use 'index' as a variable name. But it's worth it IMHO because that > warning is quite handy sometimes. > > Cheers, > > -- > ____________________________________________________________ > Sean McBride, B. Eng address@hidden > Rogue Research www.rogue-research.com > Mac Software Developer Montréal, Québec, Canada > Yep, and I don't know how that managed to get passed me. But those "index"s will be "indexp"s in the next release. Thanks, Ed -- Ed Hartnett -- address@hidden