[all-commits] [llvm/llvm-project] 42f5b0: [mlir][NFC] Fix various warnings generated by GCC 9

Daniil Dudkin via All-commits all-commits at lists.llvm.org
Mon Jul 4 03:23:37 PDT 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 42f5b0509ded45cf4838c1e308680963428496b8
      https://github.com/llvm/llvm-project/commit/42f5b0509ded45cf4838c1e308680963428496b8
  Author: Daniil Dudkin <d.dudkin at partner.samsung.com>
  Date:   2022-07-04 (Mon, 04 Jul 2022)

  Changed paths:
    M mlir/lib/Dialect/Affine/IR/AffineOps.cpp
    M mlir/lib/ExecutionEngine/OptUtils.cpp
    M mlir/lib/ExecutionEngine/SparseTensorUtils.cpp

  Log Message:
  -----------
  [mlir][NFC] Fix various warnings generated by GCC 9

Currently, there've been a lot of warnings while building MLIR.
This change fixes the warnings listed below.

  .../SparseTensorUtils.cpp: In instantiation of ‘...::openSparseTensorCOO(...) [with ...]’:
  .../SparseTensorUtils.cpp:1672:3:   required from here
  .../SparseTensorUtils.cpp:87:21: warning: format ‘%d’ expects argument of type ‘int’, but argument 3 has type ‘PrimaryType’ [-Wformat=]

  .../OptUtils.cpp:36:5: warning: this statement may fall through [-Wimplicit-fallthrough=]

  .../AffineOps.cpp:1741:32: warning: suggest parentheses around ‘&&’ within ‘||’ [-Wparentheses]

Reviewed By: aartbik, wrengr, aeubanks

Differential Revision: https://reviews.llvm.org/D128993




More information about the All-commits mailing list