gprofng: fix build with -Werror=format-security
authorVladimir Mezentsev <vladimir.mezentsev@oracle.com>
Tue, 14 Jun 2022 06:49:52 +0000 (23:49 -0700)
committerVladimir Mezentsev <vladimir.mezentsev@oracle.com>
Tue, 14 Jun 2022 18:05:41 +0000 (11:05 -0700)
commit8e2de6c81a90e98ed95dfc0ffef1e3df9cfff6b7
treef7a74ca7a4403c7e0dd9223f9a1bfc0dba0710f6
parent362a867f2ac16f597d06e8a9a3f6c15afa7adf6f
gprofng: fix build with -Werror=format-security

gprofng/ChangeLog
2022-06-13  Vladimir Mezentsev  <vladimir.mezentsev@oracle.com>

PR gprofng/28968
* src/src/Hist_data.cc (print_row): Make param const.
* src/src/Hist_data.h (print_row): Likewise.
* src/src/Print.h: Remove unused functions and variables.
* src/Print.cc: Fix -Werror=format-security errors.
* src/parse.cc: Likewise.
gprofng/src/Hist_data.cc
gprofng/src/Hist_data.h
gprofng/src/Print.cc
gprofng/src/Print.h
gprofng/src/parse.cc