[gcc] Fix build failure caused by error: multi-line comment [-Werror=comment]...
[gcc] Fix build failure caused by error: multi-line comment [-Werror=comment] in focus_traversal_unittest.cc gcc toolchain throws a warning for using a trailing '\' in a comment which begins with '//'. clang toolchain doesn't throw any warning for this hence its not captured by our bots. Compiler option -Wno-comment appended after -Wall fixes the above issue but results in having inconsistent comments. The code snippet at [1] cleverly avoids these warnings as shown. [1] https://code.google.com/p/chromium/codesearch#chromium/src/extensions/browser/content_hash_tree.h&l=23 R=mgiuca@chromium.org TBR=sky@chromium.org Review URL: https://codereview.chromium.org/874663003 Cr-Commit-Position: refs/heads/master@{#314745}
Showing
Please register or sign in to comment