Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Updates for C99 standards compliance #26

Merged
merged 7 commits into from
Dec 11, 2020

Conversation

underwoo
Copy link
Member

@underwoo underwoo commented Dec 3, 2020

Updated to c99 standards and resolved several compile time warnings.

Also made adjustments to remove compile warnings as Apple LLVM vesion 9.0.0 reports
@underwoo underwoo linked an issue Dec 3, 2020 that may be closed by this pull request
tools/libfrencutils/mpp.c Outdated Show resolved Hide resolved
tools/libfrencutils/mosaic_util.c Outdated Show resolved Hide resolved
tools/make_hgrid/create_gnomonic_cubic_grid.c Outdated Show resolved Hide resolved
@bensonr
Copy link

bensonr commented Dec 10, 2020 via email

@bensonr
Copy link

bensonr commented Dec 10, 2020

One other thing I forgot in my review was the use of the _AIX macros. Those were removed from the FMS project and it's probably safe to do the same here.

Changed name of quad precision macro to 'HAVE_LONG_DOUBLE_WIDER' to use the
AC_TYPE_LONG_DOUBLE_WIDER' test.  If the system does not have higher precision
for `long double` over `double`, and user requests `--enable-quad-precision`,
configure will display an error message.

Added a LICENSE file and added test and license badges to readme.
tools/libfrencutils/Makefile.am Outdated Show resolved Hide resolved
#endif
if (fabs(det) < EPSLN15 ) return 0;
#endif
if (fabsl(det) < EPSLN15 ) return 0;
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think this needs to be reverted to fabs to work with the macro inserted into mosaic_util.h

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

det is defined a few lines above as const long double det. Since det is always long double this is the correct abs function.

@ngs333 ngs333 merged commit be97618 into NOAA-GFDL:master Dec 11, 2020
@underwoo underwoo deleted the gcc-10-updates branch May 7, 2021 17:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

GCC/clang c99 standards compliance
5 participants