Skip to content

Conversation

@laurynas-biveinis
Copy link
Contributor

  • We have much use of sprintf, which is now flagged by clang as unsafe. Silence this, since we have too many uses to rewrite easily.

  • This version if Xcode also flags loss of precision from 64 to 32 bits integer, silence this also. Typically when x of type size_t is assigned to an int.

Change-Id: I3e5f829c7fdb8ddb08c56149bc0db1a5dc277f34

- We have much use of sprintf, which is now flagged by clang as unsafe.
  Silence this, since we have too many uses to rewrite easily.

- This version if Xcode also flags loss of precision from 64 to 32
  bits integer, silence this also. Typically when x of type size_t is
  assigned to an int.

Change-Id: I3e5f829c7fdb8ddb08c56149bc0db1a5dc277f34
@facebook-github-bot
Copy link

@sunshine-Chun has imported this pull request. If you are a Meta employee, you can view this diff on Phabricator.

facebook-github-bot pushed a commit that referenced this pull request May 10, 2023
…1306)

Summary:
- We have much use of sprintf, which is now flagged by clang as unsafe. Silence this, since we have too many uses to rewrite easily.

- This version if Xcode also flags loss of precision from 64 to 32 bits integer, silence this also. Typically when x of type size_t is assigned to an int.

Change-Id: I3e5f829c7fdb8ddb08c56149bc0db1a5dc277f34

Pull Request resolved: #1306

Reviewed By: hermanlee

Differential Revision: D45658644

Pulled By: sunshine-Chun

fbshipit-source-id: e5fc7b3
@laurynas-biveinis laurynas-biveinis deleted the clang-15-deprecated-decls branch May 11, 2023 02:43
luqun pushed a commit to luqun/mysql-5.6 that referenced this pull request Jun 5, 2023
…rom XCode >= 14

Summary:
- We have much use of sprintf, which is now flagged by clang as unsafe. Silence this, since we have too many uses to rewrite easily.

- This version if Xcode also flags loss of precision from 64 to 32 bits integer, silence this also. Typically when x of type size_t is assigned to an int.

Change-Id: I3e5f829c7fdb8ddb08c56149bc0db1a5dc277f34

Pull Request resolved: facebook#1306
GitHub Author: Dag Wanvik <dag.wanvik@oracle.com>

Test Plan: Imported from GitHub, without a `Test Plan:` line.

Reviewers: herman

Reviewed By: herman

Subscribers: webscalesql-eng@fb.com

Differential Revision: https://phabricator.intern.facebook.com/D45658644

Tags: accept2ship
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.

2 participants