• R/O
  • HTTP
  • SSH
  • HTTPS

Commit

Tags
No Tags

Frequently used words (click to add to your profile)

javac++androidlinuxc#windowsobjective-ccocoa誰得qtpythonphprubygameguibathyscaphec計画中(planning stage)翻訳omegatframeworktwitterdomtestvb.netdirectxゲームエンジンbtronarduinopreviewer

GCC with patches for OS216


Commit MetaInfo

Revision039a630d787dc18c76b81f08a322ba1e0d91082d (tree)
Time2020-07-02 04:21:34
AuthorJonathan Wakely <jwakely@redh...>
CommiterJonathan Wakely

Log Message

analyzer: Fix -Wanalyzer-possible-null-argument warning (PR 96014)

gcc/testsuite/ChangeLog:

PR testsuite/96014
* g++.dg/analyzer/pr94028.C: Make operator new non-throwing so
that the compiler doesn't implicitly mark it as returning
non-null.

Change Summary

Incremental Difference

--- a/gcc/testsuite/g++.dg/analyzer/pr94028.C
+++ b/gcc/testsuite/g++.dg/analyzer/pr94028.C
@@ -12,7 +12,7 @@ enum e {} i;
1212
1313 struct j
1414 {
15- void *operator new (__SIZE_TYPE__ b)
15+ void *operator new (__SIZE_TYPE__ b) throw()
1616 {
1717 return calloc (b, sizeof (int)); // { dg-warning "leak" }
1818 }