diff options
| author | Ahmad Alawneh <[email protected]> | 2023-06-12 22:09:59 -0400 |
|---|---|---|
| committer | Ahmad Alawneh <[email protected]> | 2023-06-12 22:09:59 -0400 |
| commit | 40beac66a57f9477dd03369b79a26f9823f089ff (patch) | |
| tree | cf288293ca11952c357de37557b0b58580681e24 /src/gpgpu-sim | |
| parent | cb565024f23f1ab6b11d3717967b559aa49f3333 (diff) | |
no return warnings ngs fix
Diffstat (limited to 'src/gpgpu-sim')
| -rw-r--r-- | src/gpgpu-sim/dram.cc | 1 | ||||
| -rw-r--r-- | src/gpgpu-sim/gpu-cache.h | 1 |
2 files changed, 2 insertions, 0 deletions
diff --git a/src/gpgpu-sim/dram.cc b/src/gpgpu-sim/dram.cc index 662c2ed..53c8238 100644 --- a/src/gpgpu-sim/dram.cc +++ b/src/gpgpu-sim/dram.cc @@ -880,4 +880,5 @@ unsigned dram_t::get_bankgrp_number(unsigned i) { } else { assert(1); } + return 0; // we should never get here } diff --git a/src/gpgpu-sim/gpu-cache.h b/src/gpgpu-sim/gpu-cache.h index 4bbf7e2..9a4856b 100644 --- a/src/gpgpu-sim/gpu-cache.h +++ b/src/gpgpu-sim/gpu-cache.h @@ -499,6 +499,7 @@ struct sector_cache_block : public cache_block_t { for (unsigned i = 0; i < SECTOR_CHUNCK_SIZE; ++i) { if (sector_mask.to_ulong() & (1 << i)) return i; } + return SECTOR_CHUNCK_SIZE; //error } }; |
