Skip to content

Commit bebd7d0

Browse files
authored
Merge branch 'master' into staging/warning-cleanup-1
2 parents 0155fe9 + 323d0eb commit bebd7d0

File tree

1 file changed

+3
-13
lines changed

1 file changed

+3
-13
lines changed

loguru.cpp

Lines changed: 3 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1285,14 +1285,9 @@ namespace loguru
12851285
}
12861286
}
12871287
if (g_preamble_pipe && pos < out_buff_size) {
1288-
(void)snprintf(out_buff + pos, out_buff_size - pos, "| ");
1289-
12901288
// Because this is the last if-statement, we avoid incrementing the
1291-
// position to clarify it's unused. If more cases are added, then:
1292-
// int bytes = snprintf(...)
1293-
// if (bytes > 0) {
1294-
// pos += bytes;
1295-
// }
1289+
// position to clarify it's unused.
1290+
(void)snprintf(out_buff + pos, out_buff_size - pos, "| ");
12961291
}
12971292
}
12981293

@@ -1371,13 +1366,8 @@ namespace loguru
13711366
}
13721367
}
13731368
if (g_preamble_pipe && pos < out_buff_size) {
1374-
(void)snprintf(out_buff + pos, out_buff_size - pos, "| ");
1375-
13761369
// Avoid incrementing the position to clarify it's unused
1377-
// int bytes = snprintf(...)
1378-
// if (bytes > 0) {
1379-
// pos += bytes;
1380-
// }
1370+
(void)snprintf(out_buff + pos, out_buff_size - pos, "| ");
13811371
}
13821372
}
13831373

0 commit comments

Comments
 (0)