diff options
author | Guy Harris <guy@alum.mit.edu> | 2015-11-24 18:48:47 -0800 |
---|---|---|
committer | Guy Harris <guy@alum.mit.edu> | 2015-11-25 02:49:32 +0000 |
commit | b73e812fe7c50fb717da180de2191c335ab554d7 (patch) | |
tree | 14d3f8769234ca6b3a07d5eff3c9ce91fe36bb7a /epan/wmem | |
parent | b9c50236afedc270eab5f6095e449f8c37e91daa (diff) | |
download | wireshark-b73e812fe7c50fb717da180de2191c335ab554d7.tar.gz |
No declarations in the middle of code.
We crank up pedantic warnings enough that this provokes "warning: ISO
C90 forbids mixed declarations and code" on the OS X 10.5 buildbot.
Change-Id: Ic3962f20d85e3ed003b84b298f83d12c3ae25ea1
Reviewed-on: https://code.wireshark.org/review/12120
Reviewed-by: Guy Harris <guy@alum.mit.edu>
Diffstat (limited to 'epan/wmem')
-rw-r--r-- | epan/wmem/wmem_test.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/epan/wmem/wmem_test.c b/epan/wmem/wmem_test.c index 9d95d0e66f..f57ae5ee78 100644 --- a/epan/wmem/wmem_test.c +++ b/epan/wmem/wmem_test.c @@ -1024,6 +1024,7 @@ wmem_test_itree(void) int i = 0; gint32 max_rand = 0; wmem_test_itree_user_data_t userData; + wmem_range_t range, r2; allocator = wmem_allocator_new(WMEM_ALLOCATOR_STRICT); extra_allocator = wmem_allocator_new(WMEM_ALLOCATOR_STRICT); @@ -1049,7 +1050,6 @@ wmem_test_itree(void) userData.counter = 0; tree = wmem_itree_new(allocator); - wmem_range_t range, r2; /* even though keys are uint64_t, we use G_MAXINT32 as a max because of the type returned by g_test_rand_int_range. |