warn about decorations of pointer values in return type #4483
Closed
foldcat
started this conversation in
Ideas/Requests
Replies: 2 comments 2 replies
-
Not sure I completely understand. I'm struggling to see anything dangerous or weird about the example you have posted. Can you clarify what exactly there is to warn about? |
Beta Was this translation helpful? Give feedback.
2 replies
-
The compiler cannot warn about a user-space level construct which could be perfectly valid. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
given this piece of code
will not function as the result is simply a pointer, but for me this isn't obvious at the first glance
I suggest emitting warnings when the compiler encounters this kind of code
Beta Was this translation helpful? Give feedback.
All reactions