abort is noreturn (#12061)

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

View file

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