[all-commits] [llvm/llvm-project] c04b63: [NFC][AIX][XCOFF] fixed compile warning on the str...

diggerlin via All-commits all-commits at lists.llvm.org
Fri Dec 6 09:22:54 PST 2019


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: c04b63eccd5f9fc19da410caea88d29f11e9886c
      https://github.com/llvm/llvm-project/commit/c04b63eccd5f9fc19da410caea88d29f11e9886c
  Author: diggerlin <digger.llvm at gmail.com>
  Date:   2019-12-06 (Fri, 06 Dec 2019)

  Changed paths:
    M llvm/lib/MC/XCOFFObjectWriter.cpp

  Log Message:
  -----------
  [NFC][AIX][XCOFF] fixed compile warning on the strncpy.

SUMMARY:
There is warning when compile the file XCOFFObjectWriter.cpp
/srv/llvm-buildbot-srcatch/llvm-build-dir/openmp-gcc-x86_64-linux-debian/llvm.src/llvm/lib/MC/XCOFFObjectWriter.cpp:414:17: warning: 'char* strncpy(char*, const char*, size_t)' specified bound 8 equals destination size [-Wstringop-truncation]

The patch fixed the warning.

Reviewer: daltenty

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




More information about the All-commits mailing list