[Darshan-commits] [Git][darshan/darshan][master] cleanup compiler warnings from edison

Shane Snyder xgitlab at cels.anl.gov
Tue Jun 28 15:51:55 CDT 2016


Shane Snyder pushed to branch master at darshan / darshan


Commits:
7d8ebfa0 by Shane Snyder at 2016-06-28T13:49:49-07:00
cleanup compiler warnings from edison

- - - - -


4 changed files:

- darshan-runtime/configure
- darshan-runtime/darshan-runtime-config.h.in
- darshan-runtime/lib/darshan-common.c
- darshan-runtime/lib/darshan-core.c


Changes:

=====================================
darshan-runtime/configure
=====================================
The diff for this file was not included because it is too large.

=====================================
darshan-runtime/darshan-runtime-config.h.in
=====================================
--- a/darshan-runtime/darshan-runtime-config.h.in
+++ b/darshan-runtime/darshan-runtime-config.h.in
@@ -60,9 +60,6 @@
 /* Define to the one symbol short name of this package. */
 #undef PACKAGE_TARNAME
 
-/* Define to the home page for this package. */
-#undef PACKAGE_URL
-
 /* Define to the version of this package. */
 #undef PACKAGE_VERSION
 


=====================================
darshan-runtime/lib/darshan-common.c
=====================================
--- a/darshan-runtime/lib/darshan-common.c
+++ b/darshan-runtime/lib/darshan-common.c
@@ -224,7 +224,7 @@ void darshan_common_val_counter(void **common_val_root, int *common_val_count,
     int64_t val, int64_t *common_val_p, int64_t *common_cnt_p)
 {
     struct darshan_common_val_counter* counter;
-    struct darshan_common_val_counter* found;
+    struct darshan_common_val_counter* found = NULL;
     struct darshan_common_val_counter tmp_counter;
     void* tmp;
 


=====================================
darshan-runtime/lib/darshan-core.c
=====================================
--- a/darshan-runtime/lib/darshan-core.c
+++ b/darshan-runtime/lib/darshan-core.c
@@ -330,12 +330,12 @@ void darshan_core_shutdown()
     int64_t last_end_time;
     double start_log_time;
     double tm_end;
-    double open1, open2;
-    double job1, job2;
-    double rec1, rec2;
+    double open1 = 0, open2 = 0;
+    double job1 = 0, job2 = 0;
+    double rec1 = 0, rec2 = 0;
     double mod1[DARSHAN_MAX_MODS] = {0};
     double mod2[DARSHAN_MAX_MODS] = {0};
-    double header1, header2;
+    double header1 = 0, header2 = 0;
     char *logfile_name;
     int local_mod_use[DARSHAN_MAX_MODS] = {0};
     int global_mod_use_count[DARSHAN_MAX_MODS] = {0};



View it on GitLab: https://xgitlab.cels.anl.gov/darshan/darshan/commit/7d8ebfa060aaa1518fe675681ecb68a4720ab648
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mcs.anl.gov/pipermail/darshan-commits/attachments/20160628/d5f6c699/attachment-0001.html>


More information about the Darshan-commits mailing list