diff options
author | Tavian Barnes <tavianator@tavianator.com> | 2014-03-01 15:54:43 -0500 |
---|---|---|
committer | Tavian Barnes <tavianator@tavianator.com> | 2014-03-01 15:54:43 -0500 |
commit | d2257911e04acab410134d1a3ed79fa569dd941d (patch) | |
tree | aa1bdb577c90552d505c012d4cecdb9ed35e8a64 /libdimension/profile.c | |
parent | 577d01982080e181edeba5172d5a7e007170f4e3 (diff) | |
download | dimension-d2257911e04acab410134d1a3ed79fa569dd941d.tar.xz |
Fix some warnings found by higher warning levels than -Wall.
Diffstat (limited to 'libdimension/profile.c')
-rw-r--r-- | libdimension/profile.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libdimension/profile.c b/libdimension/profile.c index fcbb423..308c8fb 100644 --- a/libdimension/profile.c +++ b/libdimension/profile.c @@ -125,12 +125,12 @@ dmnsn_expect(bool result, bool expected, const char *func, const char *file, ++branch->predicted; } } else { - dmnsn_branch branch = { + dmnsn_branch new_branch = { .location = dmnsn_strdup(key), .predicted = (result == expected) ? 1 : 0, .branches = 1 }; - dmnsn_dictionary_insert(thread_profile, key, &branch); + dmnsn_dictionary_insert(thread_profile, key, &new_branch); } return result; |