Commit 4559cd1b authored by hkrishna's avatar hkrishna

miscellaneous warning fixes

git-svn-id: http://visit.ilight.com/svn/visit/trunk/src@23665 18c085ea-50e0-402c-830e-de6fd14e8384
parent f478aac4
...@@ -165,7 +165,7 @@ Definition: ...@@ -165,7 +165,7 @@ Definition:
static void static void
PyQueryOverTimeAttributes_CallLogRoutine(Subject *subj, void *data) PyQueryOverTimeAttributes_CallLogRoutine(Subject *subj, void *data)
{ {
QueryOverTimeAttributes *atts = (QueryOverTimeAttributes *)subj; QueryOverTimeAttributes *atts = (QueryOverTimeAttributes *)subj; (void)atts;
typedef void (*logCallback)(const std::string &); typedef void (*logCallback)(const std::string &);
logCallback cb = (logCallback)data; logCallback cb = (logCallback)data;
......
...@@ -152,7 +152,7 @@ static herr_t VisIt_H5Fclose(hid_t fid) ...@@ -152,7 +152,7 @@ static herr_t VisIt_H5Fclose(hid_t fid)
H5Fget_obj_ids(fid, obj_flags, noo, ooids); H5Fget_obj_ids(fid, obj_flags, noo, ooids);
#endif #endif
n = strlen(msg); n = strlen(msg);
for (int i = 0; i < noo && n < sizeof(msg); i++) for (int i = 0; i < noo && (size_t)n < sizeof(msg); i++)
{ {
char name[256], tmp[256]; char name[256], tmp[256];
H5Iget_name(ooids[i], name, sizeof(name)); H5Iget_name(ooids[i], name, sizeof(name));
......
...@@ -629,7 +629,7 @@ PyQueryOverTimeAttributes_GetLogString() ...@@ -629,7 +629,7 @@ PyQueryOverTimeAttributes_GetLogString()
static void static void
PyQueryOverTimeAttributes_CallLogRoutine(Subject *subj, void *data) PyQueryOverTimeAttributes_CallLogRoutine(Subject *subj, void *data)
{ {
QueryOverTimeAttributes *atts = (QueryOverTimeAttributes *)subj; QueryOverTimeAttributes *atts = (QueryOverTimeAttributes *)subj; (void)atts;
typedef void (*logCallback)(const std::string &); typedef void (*logCallback)(const std::string &);
logCallback cb = (logCallback)data; logCallback cb = (logCallback)data;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment