Skip to content

Fix gcc8 error/warning -Werror=format-truncation=#787

Merged
ras0219-msft merged 1 commit intomicrosoft:masterfrom
andreasstieger:gcc8
Aug 1, 2018
Merged

Fix gcc8 error/warning -Werror=format-truncation=#787
ras0219-msft merged 1 commit intomicrosoft:masterfrom
andreasstieger:gcc8

Conversation

@andreasstieger
Copy link
Copy Markdown
Contributor

utilities::datetime::to_string(): datetime_str and buf were oversized
for fitting into output without possible trunctation

utilities::datetime::to_string(): datetime_str and buf were oversized
for fitting into output without possible trunctation
@andreasstieger
Copy link
Copy Markdown
Contributor Author

This actually fixes part of #778, and at least for this warning is better than #779.

@ras0219-msft
Copy link
Copy Markdown
Contributor

Agreed, this is a good fix. Thanks for the PR!

@ras0219-msft ras0219-msft merged commit fac1470 into microsoft:master Aug 1, 2018
moriarty added a commit to moriarty/cpprestsdk that referenced this pull request Oct 17, 2018
These were disabled as a quick fix for microsoft#778 in microsoft#779.

* no-format-truncation was properly fixed in microsoft#787
* no-unused-lamda-capture was worked around in microsoft#732
* gaurds for gcc 5.4 were added in microsoft#849 but with microsoft#787 aren't needed
BillyONeal pushed a commit that referenced this pull request Oct 17, 2018
* Re-enable no-unused-lamda-capture and no-format-trucation

These were disabled as a quick fix for #778 in #779.

* no-format-truncation was properly fixed in #787
* no-unused-lamda-capture was worked around in #732
* gaurds for gcc 5.4 were added in #849 but with #787 aren't needed

* re-enable warning: -Wdelete-non-virtual-dtor

- Was disabled in #779 and fixed in #844
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants