Skip to content

Commit 31204b4

Browse files
authored
[scudo] Make comment compatible with gcc (#106137)
gcc interprets a backslash '\\' as the last char before a new line as a line continuation character, even in a comment context. This can produce an "error: multi-line comment [-Werror=comment]". This PR adds delimiters so that the comment can compile with gcc.
1 parent 3b0a1ec commit 31204b4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

compiler-rt/lib/scudo/standalone/secondary.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -426,7 +426,7 @@ class MapAllocatorCache {
426426
// The difference between the retrieved memory chunk and the request
427427
// size is at most MaxAllowedFragmentedPages
428428
//
429-
// / MaxAllowedFragmentedPages * PageSize \
429+
// +- MaxAllowedFragmentedPages * PageSize -+
430430
// +--------------------------+-------------+
431431
// | | |
432432
// +--------------------------+-------------+

0 commit comments

Comments
 (0)