{"thread":{"id":"20944","subject":"[PATCH 1/2] increase portability of NORETURN declarations","startedAt":"2009-09-14T11:49:33Z","lastAt":"2009-09-14T11:49:33Z","messageCount":1,"participants":["Erik Faye-Lund"],"isPatch":true,"patchVersion":1,"patchTotal":2},"messages":[{"id":"123143","messageId":"1252928973-6280-1-git-send-email-kusmabite@gmail.com","threadId":"20944","inReplyTo":null,"subject":"[PATCH 1/2] increase portability of NORETURN declarations","fromName":"Erik Faye-Lund","fromEmail":"kusmabite@googlemail.com","sentAt":"2009-09-14T11:49:33Z","receivedAt":"2009-09-14T11:49:33Z","isPatch":true,"sender":{"key":"kusmabite@gmail.com","avatar":"https://avatars.githubusercontent.com/u/47073?v=4"},"body":"Some compilers (including at least MSVC) supports NORETURN\non function declarations, but only before the function-name.\n\nThis patch makes it possible to define NORETURN for those compilers.\n\nSigned-off-by: Erik Faye-Lund <kusmab...@gmail.com>\n---\n\nThis patch requires specifying \"-C 2\" to \"git am\" to apply to the\ncurrent maint(7fb6bcf), but I suspect that it's not really needed\nthere. Supporting new compilers is going to require additional\npatching anyway.\n\n git-compat-util.h |    6 +++---\n 1 files changed, 3 insertions(+), 3 deletions(-)\n\ndiff --git a/git-compat-util.h b/git-compat-util.h\nindex e5e9f39..5876d91 100644\n--- a/git-compat-util.h\n+++ b/git-compat-util.h\n@@ -177,9 +177,9 @@ extern char *gitbasename(char *);\n #include \"compat/bswap.h\"\n \n /* General helper functions */\n-extern void usage(const char *err) NORETURN;\n-extern void die(const char *err, ...) NORETURN __attribute__((format (printf, 1, 2)));\n-extern void die_errno(const char *err, ...) NORETURN __attribute__((format (printf, 1, 2)));\n+extern NORETURN void usage(const char *err);\n+extern NORETURN void die(const char *err, ...) __attribute__((format (printf, 1, 2)));\n+extern NORETURN void die_errno(const char *err, ...) __attribute__((format (printf, 1, 2)));\n extern int error(const char *err, ...) __attribute__((format (printf, 1, 2)));\n extern void warning(const char *err, ...) __attribute__((format (printf, 1, 2)));\n \n-- \n1.6.4.msysgit.0.16.gd92d4.dirty\n"}]}