[all-commits] [llvm/llvm-project] 8e7f60: AvoidBindCheck.cpp: Fix GCC 5.3 build errors

Hans via All-commits all-commits at lists.llvm.org
Tue Dec 3 00:07:42 PST 2019


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: 8e7f60e942ff009de742e20e10ebc09dcdecd5a2
      https://github.com/llvm/llvm-project/commit/8e7f60e942ff009de742e20e10ebc09dcdecd5a2
  Author: Hans Wennborg <hans at chromium.org>
  Date:   2019-12-03 (Tue, 03 Dec 2019)

  Changed paths:
    M clang-tools-extra/clang-tidy/modernize/AvoidBindCheck.cpp

  Log Message:
  -----------
  AvoidBindCheck.cpp: Fix GCC 5.3 build errors

It was failing with:

clang-tools-extra/clang-tidy/modernize/AvoidBindCheck.cpp:61:29:
error: declaration of ‘clang::tidy::modernize::{anonymous}::CaptureMode clang::tidy::modernize::{anonymous}::BindArgument::CaptureMode’ [-fpermissive]
   CaptureMode CaptureMode = CM_None;
                             ^
clang-tools-extra/clang-tidy/modernize/AvoidBindCheck.cpp:38:6:
error: changes meaning of ‘CaptureMode’ from ‘enum clang::tidy::modernize::{anonymous}::CaptureMode’ [-fpermissive]
 enum CaptureMode { CM_None, CM_ByRef, CM_ByValue, CM_InitExpression };
      ^


  Commit: b5f295ffcec2fa7402e39eb1262acbd55a7d39f5
      https://github.com/llvm/llvm-project/commit/b5f295ffcec2fa7402e39eb1262acbd55a7d39f5
  Author: Hans Wennborg <hans at chromium.org>
  Date:   2019-12-03 (Tue, 03 Dec 2019)

  Changed paths:
    M clang-tools-extra/clang-tidy/modernize/AvoidBindCheck.cpp

  Log Message:
  -----------
  AvoidBindCheck.cpp: Fix unused variables warning


Compare: https://github.com/llvm/llvm-project/compare/039664db87d2...b5f295ffcec2


More information about the All-commits mailing list