diff options
author | Adrian Hunter <adrian.hunter@intel.com> | 2021-05-21 12:20:53 +0300 |
---|---|---|
committer | Arnaldo Carvalho de Melo <acme@redhat.com> | 2021-05-21 16:31:07 -0300 |
commit | f56299a9c998e0bfbd4ab07cafe9eb8444512448 (patch) | |
tree | 717f5c7af35eaf9c36ebf95ec6a46217fa60ffe9 /tools/perf/util/event.h | |
parent | fd931b2e234a7cc451a7bbb1965d6ce623189158 (diff) | |
download | linux-f56299a9c998e0bfbd4ab07cafe9eb8444512448.tar.gz linux-f56299a9c998e0bfbd4ab07cafe9eb8444512448.tar.bz2 linux-f56299a9c998e0bfbd4ab07cafe9eb8444512448.zip |
perf scripts python: exported-sql-viewer.py: Fix warning display
Deprecation warnings are useful only for the developer, not an end user.
Display warnings only when requested using the python -W option. This
stops the display of warnings like:
tools/perf/scripts/python/exported-sql-viewer.py:5102: DeprecationWarning:
an integer is required (got type PySide2.QtCore.Qt.AlignmentFlag).
Implicit conversion to integers using __int__ is deprecated, and
may be removed in a future version of Python.
err = app.exec_()
Since the warning can be fixed only in PySide2, we must wait for it to
be finally fixed there.
Signed-off-by: Adrian Hunter <adrian.hunter@intel.com>
Cc: Jiri Olsa <jolsa@redhat.com>
Cc: stable@vger.kernel.org # v5.3+
Link: http://lore.kernel.org/lkml/20210521092053.25683-4-adrian.hunter@intel.com
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
Diffstat (limited to 'tools/perf/util/event.h')
0 files changed, 0 insertions, 0 deletions