summaryrefslogtreecommitdiff
path: root/src/gpgpu-sim
diff options
context:
space:
mode:
authorNathan Conrad <[email protected]>2018-04-22 23:35:57 -0400
committerNathan Conrad <[email protected]>2018-04-22 23:35:57 -0400
commitc246c12dffa6683a1fe61ad3a311cce8b1c1cbbf (patch)
treeea79494573383a9b5ffcf33c3785de4d91cb4e30 /src/gpgpu-sim
parent968a0510e7d1826fefa7b6688eb662d71d048809 (diff)
Clang disallows empty bracks to show array indices. I believe that inserting a zero is the intent.
Diffstat (limited to 'src/gpgpu-sim')
-rw-r--r--src/gpgpu-sim/shader.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gpgpu-sim/shader.h b/src/gpgpu-sim/shader.h
index ea8c019..53a10e0 100644
--- a/src/gpgpu-sim/shader.h
+++ b/src/gpgpu-sim/shader.h
@@ -1347,7 +1347,7 @@ struct shader_core_config : public core_config
struct shader_core_stats_pod {
- void* shader_core_stats_pod_start[]; // DO NOT MOVE FROM THE TOP - spaceless pointer to the start of this structure
+ void* shader_core_stats_pod_start[0]; // DO NOT MOVE FROM THE TOP - spaceless pointer to the start of this structure
unsigned long long *shader_cycles;
unsigned *m_num_sim_insn; // number of scalar thread instructions committed by this shader core
unsigned *m_num_sim_winsn; // number of warp instructions committed by this shader core