aboutsummaryrefslogtreecommitdiffstats
path: root/wsutil
diff options
context:
space:
mode:
authorGuy Harris <guy@alum.mit.edu>2015-02-18 12:11:34 -0800
committerGuy Harris <guy@alum.mit.edu>2015-02-18 20:13:31 +0000
commite29dca79f2faccfab156871dff8b200c6768d841 (patch)
tree696df991747ab2442152c5f556c01cfe99c3163c /wsutil
parentfcc05a43a422986bff0a5eeab0d47f0b318a50d9 (diff)
Not all compilers support turning of "format=".
The clang on my machine doesn't; just do "format" instead. (The best way to handle this may be to do the formatting ourselves, so that we can get thousands separators on *all* platforms, regardless of whether its printf formatter supports it.) Change-Id: I1948d1799688cb3cf1d7b0de0696c09f6bf23f1c Reviewed-on: https://code.wireshark.org/review/7241 Reviewed-by: Guy Harris <guy@alum.mit.edu>
Diffstat (limited to 'wsutil')
-rw-r--r--wsutil/str_util.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/wsutil/str_util.c b/wsutil/str_util.c
index ad63e477bf..ba1c486282 100644
--- a/wsutil/str_util.c
+++ b/wsutil/str_util.c
@@ -136,7 +136,7 @@ format_size(gint64 size, format_size_flags_e flags)
power = 1024;
}
-DIAG_OFF(format=)
+DIAG_OFF(format)
if (size / power / power / power / power >= 10) {
g_string_printf(human_str, "%" GROUP_FLAG G_GINT64_MODIFIER "d %s", size / power / power / power / power, prefix[pfx_off]);
} else if (size / power / power / power >= 10) {
@@ -149,7 +149,7 @@ DIAG_OFF(format=)
g_string_printf(human_str, "%" GROUP_FLAG G_GINT64_MODIFIER "d", size);
is_small = TRUE;
}
-DIAG_ON(format=)
+DIAG_ON(format)
switch (flags & FORMAT_SIZE_UNIT_MASK) {
case format_size_unit_none: