-
-
Notifications
You must be signed in to change notification settings - Fork 267
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
Add 'warning density' computation to the warnhist script #3910
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Large diffs are not rendered by default.
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2311,6 +2311,45 @@ case "X-$DEV_WARNINGS" in | |
;; | ||
esac | ||
|
||
## ---------------------------------------------------------------------- | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Add new autotools option to disable diagnostic suppression. |
||
## Check if they would like suppessed compiler diagnostics displayed | ||
## (i.e. not suppressed) | ||
## | ||
## NOTE: Compiler diagnostics (i.e. warnings) are suppressed for some | ||
## "noisy" warnings that are harmless (in the opinion of the primary | ||
## HDF5 development team), but this option is provided to allow | ||
## developers to see those warnings. | ||
## | ||
AC_MSG_CHECKING([whether showing all compiler warnings is enabled]) | ||
AC_ARG_ENABLE([show-all-warnings], | ||
[AS_HELP_STRING([--enable-show-all-warnings], | ||
[Enable showing all compiler warnings (for developer debugging). | ||
[default=no] | ||
])], | ||
[SHOW_ALL_WARNINGS=$enableval]) | ||
|
||
## Set the default level. | ||
if test "X-$SHOW_ALL_WARNINGS" = X- ; then | ||
SHOW_ALL_WARNINGS=no | ||
fi | ||
|
||
## Allow this variable to be substituted in | ||
## other files (src/libhdf5.settings.in, etc.) | ||
AC_SUBST([SHOW_ALL_WARNINGS]) | ||
|
||
case "X-$SHOW_ALL_WARNINGS" in | ||
X-yes) | ||
AC_MSG_RESULT([yes]) | ||
AC_DEFINE([SHOW_ALL_WARNINGS], [1], [Define if showing all warnings is desired (i.e. not suppressed internally with H5_DIAG_OFF)]) | ||
;; | ||
X-no) | ||
AC_MSG_RESULT([no]) | ||
;; | ||
*) | ||
AC_MSG_ERROR([Unrecognized value: $SHOW_ALL_WARNINGS]) | ||
;; | ||
esac | ||
|
||
## ---------------------------------------------------------------------- | ||
## Check if the compiler should use profiling flags/settings | ||
## | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -28,8 +28,8 @@ | |
#endif | ||
|
||
! Define if on APPLE | ||
#cmakedefine01 H5_HAVE_DARWIN | ||
#if H5_HAVE_DARWIN == 0 | ||
#cmakedefine01 CMAKE_H5_HAVE_DARWIN | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Fix typo that was generating warning. |
||
#if CMAKE_H5_HAVE_DARWIN == 0 | ||
#undef H5_HAVE_DARWIN | ||
#else | ||
#define H5_HAVE_DARWIN | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -727,7 +727,7 @@ H5_DLL herr_t H5D__chunk_allocated(const H5D_t *dset, hsize_t *nbytes); | |
H5_DLL herr_t H5D__chunk_allocate(const H5D_t *dset, bool full_overwrite, const hsize_t old_dim[]); | ||
H5_DLL herr_t H5D__chunk_file_alloc(const H5D_chk_idx_info_t *idx_info, const H5F_block_t *old_chunk, | ||
H5F_block_t *new_chunk, bool *need_insert, const hsize_t *scaled); | ||
H5_DLL void *H5D__chunk_mem_alloc(size_t size, void *pline); | ||
H5_DLL void *H5D__chunk_mem_alloc(size_t size, void *pline) H5_ATTR_MALLOC; | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Add attribute to address warning. |
||
H5_DLL void H5D__chunk_mem_free(void *chk, void *pline); | ||
H5_DLL void *H5D__chunk_mem_xfree(void *chk, const void *pline); | ||
H5_DLL void *H5D__chunk_mem_realloc(void *chk, size_t size, const H5O_pline_t *pline); | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -389,7 +389,7 @@ H5_DLL herr_t H5EA__destroy_flush_depend(H5AC_info_t *parent_entry, H5AC_info_t | |
H5_DLL H5EA_hdr_t *H5EA__hdr_alloc(H5F_t *f); | ||
H5_DLL herr_t H5EA__hdr_init(H5EA_hdr_t *hdr, void *ctx_udata); | ||
H5_DLL haddr_t H5EA__hdr_create(H5F_t *f, const H5EA_create_t *cparam, void *ctx_udata); | ||
H5_DLL void *H5EA__hdr_alloc_elmts(H5EA_hdr_t *hdr, size_t nelmts); | ||
H5_DLL void *H5EA__hdr_alloc_elmts(H5EA_hdr_t *hdr, size_t nelmts) H5_ATTR_MALLOC; | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Add attribute to address warning. |
||
H5_DLL herr_t H5EA__hdr_free_elmts(H5EA_hdr_t *hdr, size_t nelmts, void *elmts); | ||
H5_DLL herr_t H5EA__hdr_incr(H5EA_hdr_t *hdr); | ||
H5_DLL herr_t H5EA__hdr_decr(H5EA_hdr_t *hdr); | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -75,7 +75,7 @@ typedef int (*H5ES_list_iter_func_t)(H5ES_event_t *ev, void *ctx); | |
/******************************/ | ||
/* Package Private Prototypes */ | ||
/******************************/ | ||
H5_DLL H5ES_t *H5ES__create(void); | ||
H5_DLL H5ES_t *H5ES__create(void) H5_ATTR_MALLOC; | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Add attribute to address warning. |
||
H5_DLL herr_t H5ES__insert_request(H5ES_t *es, H5VL_t *connector, void *token); | ||
H5_DLL herr_t H5ES__wait(H5ES_t *es, uint64_t timeout, size_t *num_in_progress, bool *op_failed); | ||
H5_DLL herr_t H5ES__get_requests(H5ES_t *es, H5_iter_order_t order, hid_t *connector_ids, void **requests, | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -56,10 +56,13 @@ | |
|
||
/* ID information structure used */ | ||
typedef struct H5I_id_info_t { | ||
hid_t id; /* ID for this info */ | ||
unsigned count; /* Ref. count for this ID */ | ||
unsigned app_count; /* Ref. count of application visible IDs */ | ||
const void *object; /* Pointer associated with the ID */ | ||
hid_t id; /* ID for this info */ | ||
unsigned count; /* Ref. count for this ID */ | ||
unsigned app_count; /* Ref. count of application visible IDs */ | ||
union { | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Allow an ID's object to be treated as 'const' or not 'const' as needed, avoiding warnings / diagnostic suppression noise in H5I code. |
||
const void *c_object; /* Const pointer associated with the ID */ | ||
void *object; /* Pointer associated with the ID */ | ||
} u; | ||
|
||
/* Future ID info */ | ||
bool is_future; /* Whether this ID represents a future object */ | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -175,7 +175,7 @@ H5_DLL herr_t H5P_insert(H5P_genplist_t *plist, const char *name, size_t size, v | |
H5_DLL herr_t H5P_remove(H5P_genplist_t *plist, const char *name); | ||
H5_DLL htri_t H5P_exist_plist(const H5P_genplist_t *plist, const char *name); | ||
H5_DLL htri_t H5P_class_isa(const H5P_genclass_t *pclass1, const H5P_genclass_t *pclass2); | ||
H5_DLL char *H5P_get_class_name(H5P_genclass_t *pclass); | ||
H5_DLL char *H5P_get_class_name(H5P_genclass_t *pclass) H5_ATTR_MALLOC; | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Add attribute to address warning. |
||
|
||
/* Internal helper routines */ | ||
H5_DLL herr_t H5P_get_nprops_pclass(const H5P_genclass_t *pclass, size_t *nprops, bool recurse); | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -870,7 +870,7 @@ H5_DLL herr_t H5T__enum_insert(const H5T_t *dt, const char *name, const void *va | |
H5_DLL herr_t H5T__get_member_value(const H5T_t *dt, unsigned membno, void *value); | ||
|
||
/* Field functions (for both compound & enumerated types) */ | ||
H5_DLL char *H5T__get_member_name(H5T_t const *dt, unsigned membno); | ||
H5_DLL char *H5T__get_member_name(H5T_t const *dt, unsigned membno) H5_ATTR_MALLOC; | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Add attribute to address warning. |
||
H5_DLL herr_t H5T__sort_value(const H5T_t *dt, int *map); | ||
H5_DLL herr_t H5T__sort_name(const H5T_t *dt, int *map); | ||
|
||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Add new CMake option to disable diagnostic suppression.