]> sourceware.org Git - systemtap.git/commit
Avoid triggering error with -Werror=unused-value
authorWilliam Cohen <wcohen@redhat.com>
Tue, 1 Mar 2022 21:03:54 +0000 (16:03 -0500)
committerWilliam Cohen <wcohen@redhat.com>
Tue, 1 Mar 2022 21:03:54 +0000 (16:03 -0500)
commitfda22884f612d236bee6e5e5b60e92de4886a5c3
tree0dc242e4771e7b05ea3d458d98c9be5311b6cb87
parent5fbb575053ef72e6755856c7a766fd6a4e04f3dd
Avoid triggering error with -Werror=unused-value

Fedora RPMs are compiled using -Wall which includes
-Werror=unused-value.  On architecures that do not have Dyninst
support the flush_analysis_caches define in analysis.h would trigger
the following error:

In file included from elaborate.cxx:20:
elaborate.cxx: In function ‘void build_no_more(systemtap_session&)’:
analysis.h:30:34: error: statement has no effect [-Werror=unused-value]
   30 | #define flush_analysis_caches() (0)
      |                                 ~^~
elaborate.cxx:1871:3: note: in expansion of macro ‘flush_analysis_caches’
 1871 |   flush_analysis_caches();
      |   ^~~~~~~~~~~~~~~~~~~~~
cc1plus: all warnings being treated as errors

Tweaked the flush_analysis_caches define to avoid creating an unused
value.
analysis.h
This page took 0.027389 seconds and 5 git commands to generate.