Quincey Koziol
71440cef1c
Add compiler flags for GCC 10, along with updating warnhist script to accommodate them. ( #217 )
2020-12-21 12:57:18 -06:00
Allen Byrne
0b54c556a0
Add else choice to error flags option ( #128 )
2020-11-25 11:50:21 -06:00
Dana Robinson
ffcb354237
Minor/solaris gcc fix ( #126 )
...
* Adds gnu99 as the standard when building with gcc on Solaris
* Adds a note to RELEASE.txt and improves comments
For Solaris + gcc fix (HDFFV-11191)
2020-11-25 09:26:35 -06:00
Larry Knox
fcd87d2569
Revise gnu-*flags and cmake/HDF*CompilerFlags.cmake files to add warning
...
flags for GCC compilers version 4.8 and above.
Removed files from gnu-warnings that only apply to versions < 4.8.
Consolidated warnings from versions < 4.8 that apply to versions >= 4.8
into the 4.8 warnings files.
2020-05-18 14:28:51 -05:00
Allen Byrne
ae9dc2d5f9
Restrict errors to gcc 4.8 and above.
2020-04-24 16:25:51 -05:00
Allen Byrne
f9a3ae5081
TRILAB-244 separate CXX warnings and errors from C
2020-04-23 14:32:29 -05:00
Larry Knox
5c87b06d9d
Don't add general warnings flags for unsupported old versions of gcc and
...
g++ (older than gcc/g++ 4.2).
Correct gnu-cxxflags to determine warnings flags to be added based on
C++ compiler version instead of C compiler version.
2020-04-20 16:03:08 -05:00
Larry Knox
fffe3b8dbd
Update all load_gcc_arguments to load_gnu_arguments.
...
Fixes TRILAB-212.
2020-04-08 21:31:29 -05:00
Allen Byrne
57f5d00a43
TRILAB-192 add c++ and fortran warnings build systems one file
2020-04-05 10:50:08 -05:00
David Young
e916acd018
Merge pull request #2402 in HDFFV/hdf5 from ~DYOUNG/werror:break-out-warnings to develop
...
* commit '2f09d8f3c8a4a44932c1b8ffb0f6ea2219059a5c':
Move the GNU warnings configuration under config/gnu-warnings/ and trim the filename prefixes. Update config/gnu-flags to suit.
By default, demote warnings promoted to errors back to warnings.
Incorporate the H5_ECFLAGS into the library CFLAGS. Now a bunch of errors will occur. Next commit will demote the warnings promoted to errors back to warnings again.
Break out warnings into more files that autoconf and CMake can share. This change temporarily disables the warnings that were promoted to errors, but I will add those warnings back as warnings, not errors, in the next commit.
2020-03-23 11:55:07 -05:00
David Young
2f09d8f3c8
Move the GNU warnings configuration under config/gnu-warnings/ and trim
...
the filename prefixes. Update config/gnu-flags to suit.
I also made changes to config/cmake/HDFCompilerFlags.cmake, but I'm not
sure they're correct.
2020-03-18 21:12:53 -05:00
Larry Knox
811988f82c
Modfy expression to match mpicc build with Intel as intel compiler, not
...
gcc.
2020-02-27 17:06:41 -06:00
David Young
0f32728f72
By default, demote warnings promoted to errors back to warnings.
2020-02-25 12:02:07 -06:00
David Young
d8e5995f6d
Break out warnings into more files that autoconf and CMake can share. This
...
change temporarily disables the warnings that were promoted to errors, but I
will add those warnings back as warnings, not errors, in the next commit.
2020-02-25 11:38:15 -06:00
Allen Byrne
5b92b4d362
Merging in latest from upstream (HDFFV/hdf5:refs/heads/develop)
...
* commit '590aaff33046df99a4d88ba59e4b461e060b36e4':
Optimized the floating point comparisons a little bit.
Fix for failing h5diff tests involving floating-point compares.
Removed H5_DEC_ENUM
Revert "Revert "Moved -Wunsuffixed-float-constants to the developer warnings.""
Revert "Moved -Wunsuffixed-float-constants to the developer warnings."
Moved -Wunsuffixed-float-constants to the developer warnings.
Fixed a bug in testpar/t_cache.c concerning checking expected vs. actual cache entry reads and writes.
2020-01-24 09:57:39 -06:00
Dana Robinson
492d186a5c
Revert "Revert "Moved -Wunsuffixed-float-constants to the developer warnings.""
...
This reverts commit 6486e06545 .
2020-01-23 14:40:47 -08:00
Allen Byrne
cf84882b3c
Create common build system files for warnings
2020-01-17 13:14:06 -06:00
Dana Robinson
4fd5a3e00b
Changed -Wformat-truncation's level from 2 to 1.
2020-01-01 10:12:52 -08:00
Dana Robinson
1ad02a4459
Yanked -Wc++-compat from the flags used to build the C library in both
...
the Autotools and CMake.
2019-12-04 00:49:52 -08:00
David Young
0108072f7a
Revert "Make a squash commit of 'Quiet some warnings by adjusting warnings level and fixing some code.' (commit 5c911d8baf)"
2019-11-27 11:26:02 -06:00
David Young
6d5ec83fc3
Always warn on maybe-uninitialized. -Wincompatible-pointer-types was not
...
available until GCC 5, so enable it only if that's the GCC version we're using.
2019-11-22 14:34:42 -06:00
David Young
fa1dfbbd8d
Only promote maybe-uninitialized warnings to errors on GCC 8. Even on
...
GCC 8, there may be false positives at low optimization levels? I need
to check.
2019-11-22 14:23:07 -06:00
David Young
dde718ad51
Only use -Werror=cast-function-type with GCC 8 and later.
2019-11-22 13:49:59 -06:00
David Young
edb6f34440
Put all of the -W options back into the order I found them in so that it's
...
easier to compare old and new config/gnu-flags.
2019-11-22 13:41:45 -06:00
David Young
29561bac95
Promote decleration-after-statement warnings to errors.
2019-11-13 14:39:12 -06:00
David Young
560db03d66
Make errors of some more warnings. Move disabled warnings to
...
DEVELOPER_WARNING_CFLAGS. Put just one warning option on a line, and
sort some of the options.
2019-11-13 13:33:46 -06:00
David Young
34eff2aae5
Change some GCC warnings to errors. Fix code to quiet some warnings.
2019-11-05 12:14:26 -06:00
Dana Robinson
438935557e
Fixed a couple of typos.
2019-07-31 22:16:50 -05:00
Dana Robinson
d7144b2fa4
Restored warnings for older gcc so jam can continue to creak along.
2019-07-16 03:49:50 -05:00
Dana Robinson
d5031a5519
Removed support for gcc 4.3 and earlier.
2019-07-14 10:46:03 -07:00
Dana Robinson
3fa1cc4700
Fix errant quotes
2019-07-10 13:40:09 -07:00
Dana Robinson
40b63bffb7
* Fixed a bug in the gcc warning parsing
...
* Changed version parsing from == gcc 4.x to < to handle ancient
compilers.
2019-07-10 13:05:50 -07:00
Dana Robinson
924d4c01a8
Reworked the config/gnu-flags file to be more organized and robust.
2019-07-10 10:49:55 -07:00
Dana Robinson
52f0622bfe
Converted duplicated flags code to a set of if statements.
2019-07-10 09:09:59 -07:00
Quincey Koziol
7509c2c4fc
Added GCC9 flags to CMake build
2019-07-02 23:49:35 -05:00
Quincey Koziol
3b594992d6
Add support for GCC9, update warnhist script, and clean up warnings.
2019-07-02 23:43:45 -05:00
Quincey Koziol
6ced6457c3
Move the -Wformat-nonliteral warning to the developer flags. Fix bugs
...
I introduced in the last commit.
2019-06-28 19:26:47 -05:00
Quincey Koziol
d5130bb573
Updated configure & CMake compiler flags for GCC 8.x, along with corresponding
...
changes to warnhist script (and some extra improvements for condensing C++
and Java warnings), and fixed a bunch of warnings.
2019-06-28 09:10:43 -05:00
Quincey Koziol
4e3a0c505c
Move -Wnormalized down into GCC 6.x flags
2019-06-22 11:41:33 -05:00
Quincey Koziol
1ccbdfee58
Add support for GCC 7.x warnings, update warnhist script to account for them,
...
clean up warnings.
2019-06-21 10:05:34 -05:00
Allen Byrne
87e491da88
HDFFV-10776 missing compiler flags
2019-04-30 16:42:08 -05:00
Larry Knox
ab31eafa2e
Correct typo in comment in config/gnu-flags.
2018-07-24 15:21:55 -05:00
Larry Knox
892252106a
Apply Cygwin pathches from Marco Atzeri.
...
Commit Joe Lee's typo corrections for src/H5MF.c.
2018-07-18 17:01:53 -05:00
Dana Robinson
dd567df97b
Added -fno-omit-frame-pointer to gcc flags when symbols when
...
building with debugging symbols.
2017-06-12 15:37:32 -04:00
Dana Robinson
742e1d5541
Fixed misplaced space in config/gnu-flags.
2017-05-26 12:56:55 -04:00
Dana Robinson
2e6d95a1a1
Updated the gnu-flags config file to remove gcc 3.x and 4.0 configurations
...
as well as other minor rework and cleanup.
2017-05-16 00:27:30 -04:00
Larry Knox
89fbe00dec
Merge pull request #426 in HDFFV/hdf5 from ~LRKNOX/hdf5_lrk:hdf5_1_10 to hdf5_1_10
...
* commit '54957d37f5aa73912763dbb6e308555e863c43f4':
Commit copyright header change for src/H5PLpkg.c which was added after running script to make changes.
Add new files in release_docs to MANIFEST. Cimmit changes to Makefile.in(s) and H5PL.c that resulted from running autogen.sh.
Merge pull request #407 in HDFFV/hdf5 from ~LRKNOX/hdf5_lrk:hdf5_1_10_1 to hdf5_1_10_1
Change copyright headers to replace url referring to file to be removed and replace it with new url for COPYING file.
2017-04-25 16:05:36 -05:00
Dana Robinson
06570cd167
Updated the developer flags so that they respect gcc versions.
2017-01-12 12:40:28 -06:00
Dana Robinson
e6a12a3fea
Added an --enable-developer-warnings option to configure so
...
users can ignore -Wsuggest-attribute warnings and other
noise that doesn't indicate poor code quality.
2017-01-10 13:49:49 -05:00
Quincey Koziol
2a16af5703
[svn-r30026] Description:
...
Remove -Wnormalized from GCC 4.x builds.
Tested on:
elk (w/gcc 4.4.7)
moohan (w/gcc 4.8.5)
2016-06-05 23:34:20 -05:00