-
-
Notifications
You must be signed in to change notification settings - Fork 610
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix Issue 23249 - Deprecation: argument &p for format specification "%m" must be char*, not char** #14307
Conversation
|
Thanks for your pull request, @ibuclaw! Bugzilla references
Testing this PR locallyIf you don't have a local development environment setup, you can use Digger to test this PR: dub run digger -- build "master + dmd#14307" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for spotting and fixing this bug !
|
Sorted out the implementation, the tests are yet to be updated. |
55c6289 to
fe4f7f4
Compare
| @@ -27,48 +33,38 @@ void main() | |||
| #line 100 | |||
| printf("%m this is a string in errno"); | |||
| printf("%s %m", "str".ptr, 2); | |||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should the chkformat complain when there are more arguments than format specifiers @WalterBright?
…%m" must be char*, not char**
|
This is fine for now, fixing scansets will be next. |
Properly implement
%mextension. Still missing%m[xxx], but that is related to issue 23251.At this point, I'm not sure whether it would be better to hoist the printf and scanf-specific parsing into
parsePrintfFormatSpecifierandparseScanfFormatSpecifierrespectively - callingparseGenericFormatSpecifieronly if not handling any context-dependent formats.