diff options
author | Steve Huston <shuston@riverace.com> | 2022-04-21 17:02:57 +0000 |
---|---|---|
committer | Steve Huston <shuston@riverace.com> | 2022-04-21 17:02:57 +0000 |
commit | e214db007eba0a7f293e44c3ee2fbbedab38b0c4 (patch) | |
tree | a03877964d3558955c3ee943a4df64b3d0864bc6 /ACE/tests/Memcpy_Test.cpp | |
parent | 296d113203ffb70fb8c81c3ce244bf810c17e834 (diff) | |
download | ATCD-e214db007eba0a7f293e44c3ee2fbbedab38b0c4.tar.gz |
Replace fallthrough with ACE_FALLTHROUGH
Diffstat (limited to 'ACE/tests/Memcpy_Test.cpp')
-rw-r--r-- | ACE/tests/Memcpy_Test.cpp | 32 |
1 files changed, 16 insertions, 16 deletions
diff --git a/ACE/tests/Memcpy_Test.cpp b/ACE/tests/Memcpy_Test.cpp index 5c258fe31bc..eec4ddac8e2 100644 --- a/ACE/tests/Memcpy_Test.cpp +++ b/ACE/tests/Memcpy_Test.cpp @@ -22,37 +22,37 @@ smemcpy (void *dest, const void *src, const size_t n) // Unroll the loop... switch (n) { case 16: to[ 15] = from[ 15]; - // fallthrough + ACE_FALLTHROUGH; case 15: to[ 14] = from[ 14]; - // fallthrough + ACE_FALLTHROUGH; case 14: to[ 13] = from[ 13]; - // fallthrough + ACE_FALLTHROUGH; case 13: to[ 12] = from[ 12]; - // fallthrough + ACE_FALLTHROUGH; case 12: to[ 11] = from[ 11]; - // fallthrough + ACE_FALLTHROUGH; case 11: to[ 10] = from[ 10]; - // fallthrough + ACE_FALLTHROUGH; case 10: to[ 9] = from[ 9]; - // fallthrough + ACE_FALLTHROUGH; case 9: to[ 8] = from[ 8]; - // fallthrough + ACE_FALLTHROUGH; case 8: to[ 7] = from[ 7]; - // fallthrough + ACE_FALLTHROUGH; case 7: to[ 6] = from[ 6]; - // fallthrough + ACE_FALLTHROUGH; case 6: to[ 5] = from[ 5]; - // fallthrough + ACE_FALLTHROUGH; case 5: to[ 4] = from[ 4]; - // fallthrough + ACE_FALLTHROUGH; case 4: to[ 3] = from[ 3]; - // fallthrough + ACE_FALLTHROUGH; case 3: to[ 2] = from[ 2]; - // fallthrough + ACE_FALLTHROUGH; case 2: to[ 1] = from[ 1]; - // fallthrough + ACE_FALLTHROUGH; case 1: to[ 0] = from[ 0]; - // fallthrough + ACE_FALLTHROUGH; case 0: return dest; default: return ACE_OS::memcpy (dest, src, n); } |