abort is noreturn (#12061)

This commit is contained in:
Jacek Sieka
2019-08-27 14:27:44 +02:00
committed by Andreas Rumpf
parent 1ccff0324c
commit 66a8856152

View File

@@ -30,7 +30,7 @@ proc c_strcmp*(a, b: cstring): cint {.
proc c_strlen*(a: cstring): csize {.
importc: "strlen", header: "<string.h>", noSideEffect.}
proc c_abort*() {.
importc: "abort", header: "<stdlib.h>", noSideEffect.}
importc: "abort", header: "<stdlib.h>", noSideEffect, noreturn.}
when defined(linux) and defined(amd64):