-
-
Notifications
You must be signed in to change notification settings - Fork 419
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Starting with GCC 8, they added a new warning `stringops-truncation`. It is well intentioned but, seems prone to a lot of false positives. It found several false positives in the Pony codebase and because we treat all warnings as errors, you can't build ponyc with GCC 8+. This commit switches from using strncpy to memcpy. They are in the end, the same operation except a difference in return type. However, with the new gcc option, memcpy will not complain about not copying the null terminator. Fixes #3313
- Loading branch information
1 parent
f2f23dc
commit 174138f
Showing
4 changed files
with
7 additions
and
6 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
This file contains 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
This file contains 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