Skip to content

Commit 92a770c

Browse files
Fix compiler warnings when QUDA_INVERFACE_NVTX=ON
1 parent d46a748 commit 92a770c

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

include/timer.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -195,7 +195,7 @@ namespace quda {
195195
#define PUSH_RANGE(name,cid) { \
196196
int color_id = cid; \
197197
color_id = color_id%nvtx_num_colors;\
198-
nvtxEventAttributes_t eventAttrib = {0}; \
198+
nvtxEventAttributes_t eventAttrib = {}; \
199199
eventAttrib.version = NVTX_VERSION; \
200200
eventAttrib.size = NVTX_EVENT_ATTRIB_STRUCT_SIZE; \
201201
eventAttrib.colorType = NVTX_COLOR_ARGB; \

lib/milc_interface.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ static const int num_colors = sizeof(colors)/sizeof(uint32_t);
3333
#define PUSH_RANGE(name,cid) { \
3434
int color_id = cid; \
3535
color_id = color_id%num_colors;\
36-
nvtxEventAttributes_t eventAttrib = {0}; \
36+
nvtxEventAttributes_t eventAttrib = {}; \
3737
eventAttrib.version = NVTX_VERSION; \
3838
eventAttrib.size = NVTX_EVENT_ATTRIB_STRUCT_SIZE; \
3939
eventAttrib.colorType = NVTX_COLOR_ARGB; \

0 commit comments

Comments
 (0)