Skip to content

Commit fb866f9

Browse files
authored
[flang-rt][device] Silence warning missing return statement at end of non-void function (llvm#156077)
- Silence warning when using `FLANG_RT_EXPERIMENTAL_OFFLOAD_SUPPORT=CUDA`
1 parent 943c704 commit fb866f9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

flang-rt/include/flang-rt/runtime/io-stmt.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -395,7 +395,7 @@ class IoStatementBase : public IoErrorHandler {
395395

396396
RT_API_ATTRS void BadInquiryKeywordHashCrash(InquiryKeywordHash);
397397

398-
RT_API_ATTRS void ReportUnsupportedChildIo() const {
398+
RT_API_ATTRS [[noreturn]] void ReportUnsupportedChildIo() const {
399399
Crash("not yet implemented: child IO");
400400
}
401401

0 commit comments

Comments
 (0)