FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

gh-132983: Fix zstd compiler warning about unused function mt_continue_should_break() by erlend-aasland · Pull Request #133947 · python/cpython · GitHub

/ cpython Public

gh-132983: Fix zstd compiler warning about unused function mt_continue_should_break() - #133947

Merged
AA-Turner merged 1 commit into
python:mainfrom
erlend-aasland:zstd-warning
May 12, 2025
Merged

gh-132983: Fix zstd compiler warning about unused function mt_continue_should_break()#133947
AA-Turner merged 1 commit into
python:mainfrom
erlend-aasland:zstd-warning

Conversation

erlend-aasland commented May 12, 2025
edited
Loading

Copy link
Copy Markdown
Contributor

Fixes the following compiler warning:

./Modules/_zstd/compressor.c:490:1: warning: unused function 'mt_continue_should_break' [-Wunused-function]
  490 | mt_continue_should_break(ZSTD_inBuffer *in, ZSTD_outBuffer *out)
      | ^~~~~~~~~~~~~~~~~~~~~~~~
1 warning generated.

erlend-aasland commented May 12, 2025
edited
Loading

Copy link
Copy Markdown
Contributor Author

AFAICS, mt_continue_should_break is only used in an assert, so we can safely only define it if we're debugging.

AA-Turner left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low Quality

Sorry, I didn't see this compiler warning locally (do you need different flags for it?).

A

AA-Turner added the needs backport to 3.14 bugs and security fixes label May 12, 2025
AA-Turner merged commit 121ed71 into python:main May 12, 2025

This comment was marked as outdated.

miss-islington pushed a commit to miss-islington/cpython that referenced this pull request May 12, 2025
…inue_should_break()`` (pythonGH-133947)

(cherry picked from commit 121ed71)

Co-authored-by: Erlend E. Aasland <erlend@python.org>

bedevere-app Bot commented May 12, 2025

Copy link
Copy Markdown

GH-133950 is a backport of this pull request to the 3.14 branch.

bedevere-app Bot removed the needs backport to 3.14 bugs and security fixes label May 12, 2025
erlend-aasland deleted the zstd-warning branch May 12, 2025 19:24
AA-Turner pushed a commit that referenced this pull request May 12, 2025
…tinue_should_break()`` (GH-133947) (#133950)

gh-132983: Fix compiler warning about unused function ``mt_continue_should_break()`` (GH-133947)
(cherry picked from commit 121ed71)

Co-authored-by: Erlend E. Aasland <erlend@python.org>
Pranjal095 pushed a commit to Pranjal095/cpython that referenced this pull request Jul 12, 2025
taegyunkim pushed a commit to taegyunkim/cpython that referenced this pull request Aug 4, 2025
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants


Back | FazBrowse Home | New Git URL