GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — add sensible constraints for using __MINGW_PRINTF_FORMAT in include/C… by Keith-H-Utron · Pull Request #1896 · cpputest/cpputest

Conversation

@Keith-H-Utron

@Keith-H-Utron Keith-H-Utron commented Sep 9, 2026

Copy link
Copy Markdown
Contributor

…ppUTest/CppUTestConfig.h to silence warnings when building for UCRT64 with autotools

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

thetic reacted with thumbs up emoji
All reactions
  • 👍 1 reaction
@Keith-H-Utron
add sensible constraints for using __MINGW_PRINTF_FORMAT in include/C…
bb8b696
…ppUTest/CppUTestConfig.h to silence warnings when building for UCRT64 with autotools
@Keith-H-Utron Keith-H-Utron mentioned this pull request Sep 9, 2026
Unable to install CppUTest on Windows 11 #1832
Open
@thetic thetic mentioned this pull request Sep 10, 2026
Only use __MINGW_PRINTF_FORMAT under MinGW ANSI stdio thetic/mu.tiny#104
Merged
4 of 5 tasks
thetic added a commit to thetic/mu.tiny that referenced this pull request Sep 10, 2026
@thetic
Only use __MINGW_PRINTF_FORMAT under MinGW ANSI stdio
d056032
On UCRT-based MinGW builds, __USE_MINGW_ANSI_STDIO defaults to 0,
so __MINGW_PRINTF_FORMAT no longer matches the CRT's printf and
trips format-checking warnings. Restrict it to the classic MinGW
runtime and fall back to plain printf otherwise, matching cpputest/cpputest#1896.

Add a UCRT64 leg to the MSYS CI matrix so this path is covered.

Claude-Session: https://claude.ai/code/session_01AK4HQuuasGpAUvZtortGkH
@Keith-H-Utron

Keith-H-Utron commented Sep 10, 2026

Copy link
Copy Markdown
Contributor Author

After more testing, this isn't the right solution. More light was found by reading & testing out the code in Martin Licht's article, The long double trouble with MinGW and Windows, which shows that one has two options for mitigating the problem, and the one I chose here is half-baked. Sorry for that. Closing this PR.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@Keith-H-Utron Keith-H-Utron closed this Sep 10, 2026
@Keith-H-Utron
Keith-H-Utron deleted the 1832-fix-ucrt64-autotools-warning-__MINGW_PRINTF_FORMAT-is-an-unrecognized-format-function-type branch September 10, 2026 18:03
@basvodde

basvodde commented Sep 10, 2026

Copy link
Copy Markdown
Member

no problem, thanks for contributing anyways!

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

No reviews

Uh oh!

There was an error while loading. Please reload this page.

Assignees

No one assigned

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

Uh oh!

There was an error while loading. Please reload this page.

2 participants

@Keith-H-Utron @basvodde
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
You are visitor 01402503 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.