summaryrefslogtreecommitdiffstats
path: root/meta/recipes-kernel/systemtap
diff options
context:
space:
mode:
authorKhem Raj <raj.khem@gmail.com>2023-03-14 11:00:04 -0700
committerRichard Purdie <richard.purdie@linuxfoundation.org>2023-03-17 17:17:42 +0000
commit4f09a93611134351381415d69228317d8a779014 (patch)
tree1c6907754df48f1173f48f4dee7ba926a7b23992 /meta/recipes-kernel/systemtap
parentb9da0488f520969f4ec030199104a647843997e4 (diff)
downloadpoky-4f09a93611134351381415d69228317d8a779014.tar.gz
systemtap: Disable dangling-pointer warning
This is to fix build in RISCV64 | In constructor 'symresolution_info::symresolution_info(systemtap_session&, bool)', | inlined from 'int semantic_pass_symbols(systemtap_session&)' at ../git/elaborate.cxx:1884:28: | ../git/elaborate.cxx:2601:21: error: storing the address of local variable 'sym' in '*s.systemtap_session::symbol_resolver' [-Werror=dangling-pointer=] | 2601 | s.symbol_resolver = this; // save resolver for early PR25841 function resolution | | ~~~~~~~~~~~~~~~~~~^~~~~~ | ../git/elaborate.cxx: In function 'int semantic_pass_symbols(systemtap_session&)': | ../git/elaborate.cxx:1884:22: note: 'sym' declared here | 1884 | symresolution_info sym (s); | | ^~~ | ../git/elaborate.cxx:1884:22: note: 's' declared here (From OE-Core rev: dcc891059c5f3a17781febfff4a4280b4b7c8754) Signed-off-by: Khem Raj <raj.khem@gmail.com> Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-kernel/systemtap')
-rw-r--r--meta/recipes-kernel/systemtap/systemtap_git.bb3
1 files changed, 3 insertions, 0 deletions
diff --git a/meta/recipes-kernel/systemtap/systemtap_git.bb b/meta/recipes-kernel/systemtap/systemtap_git.bb
index 072fcb310a..d320a8a5e0 100644
--- a/meta/recipes-kernel/systemtap/systemtap_git.bb
+++ b/meta/recipes-kernel/systemtap/systemtap_git.bb
@@ -34,6 +34,9 @@ PACKAGECONFIG[python3-probes] = "--with-python3-probes,--without-python3-probes,
34inherit autotools gettext pkgconfig systemd 34inherit autotools gettext pkgconfig systemd
35inherit ${@bb.utils.contains('PACKAGECONFIG', 'python3-probes', 'setuptools3-base', '', d)} 35inherit ${@bb.utils.contains('PACKAGECONFIG', 'python3-probes', 'setuptools3-base', '', d)}
36 36
37# | ../git/elaborate.cxx:2601:21: error: storing the address of local variable 'sym' in '*s.systemtap_session::symbol_resolver' [-Werror=dangling-pointer=]
38CXXFLAGS += "-Wno-dangling-pointer"
39
37# exporter comes with python3-probes 40# exporter comes with python3-probes
38PACKAGES =+ "${PN}-exporter" 41PACKAGES =+ "${PN}-exporter"
39FILES:${PN}-exporter = "${sysconfdir}/stap-exporter/* \ 42FILES:${PN}-exporter = "${sysconfdir}/stap-exporter/* \