Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upHow to teach the compiler that stop() doesn't return? #486
Comments
|
For what it's worth, R defines the |
|
We appear to have issues with this per #512. @krlmlr @kevinushey Can one of you familiar with NORET please check how / why it is defined? I tried adding a simple
in the file, but no mas. If and when I do replace |
So that we can write
without issuing a warning.
There is a "noreturn" attribute for GCC and clang, but there might be other solutions. EDIT: http://stackoverflow.com/a/25408952/946850 is a nice SO answer that features
__builtin_unreachable().Re tidyverse/dplyr#1878 (comment), CC @hadley.