From: Stefan Krah Date: Fri, 30 Mar 2012 12:12:20 +0000 (+0200) Subject: Use abort() rather than exit() to appease tools like rpmlint. abort() is used X-Git-Tag: v3.3.0a2~31 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=0e41981cd512b9735fb0ff63a82d2d5264aff5be;p=thirdparty%2FPython%2Fcpython.git Use abort() rather than exit() to appease tools like rpmlint. abort() is used in libmpdec to prevent undefined behavior if an invalid context is used. This cannot occur for the _decimal module since user input for the context is validated. --- diff --git a/Modules/_decimal/libmpdec/mpdecimal.h b/Modules/_decimal/libmpdec/mpdecimal.h index 01fb59ec0b8e..f3f32ac6017a 100644 --- a/Modules/_decimal/libmpdec/mpdecimal.h +++ b/Modules/_decimal/libmpdec/mpdecimal.h @@ -751,7 +751,7 @@ EXTINLINE void mpd_copy_flags(mpd_t *result, const mpd_t *a); #define mpd_err_fatal(...) \ do {fprintf(stderr, "%s:%d: error: ", __FILE__, __LINE__); \ fprintf(stderr, __VA_ARGS__); fputc('\n', stderr); \ - exit(1); \ + abort(); \ } while (0) #define mpd_err_warn(...) \ do {fprintf(stderr, "%s:%d: warning: ", __FILE__, __LINE__); \