Ticket #10575: systemd-238-gperf-3.1.patch

File systemd-238-gperf-3.1.patch, 5.4 KB (added by Wayne Blaszczyk, 3 years ago)
  • src/basic/log.c

    diff -Naur a/src/basic/log.c b/src/basic/log.c
    a b  
    814814        log_dispatch_internal(level, 0, file, line, func, NULL, NULL, NULL, NULL, buffer);
    815815}
    816816
    817 noreturn void log_assert_failed_realm(
     817_noreturn_ void log_assert_failed_realm(
    818818                LogRealm realm,
    819819                const char *text,
    820820                const char *file,
     
    826826        abort();
    827827}
    828828
    829 noreturn void log_assert_failed_unreachable_realm(
     829_noreturn_ void log_assert_failed_unreachable_realm(
    830830                LogRealm realm,
    831831                const char *text,
    832832                const char *file,
  • src/basic/log.h

    diff -Naur a/src/basic/log.h b/src/basic/log.h
    a b  
    186186                char *buffer);
    187187
    188188/* Logging for various assertions */
    189 noreturn void log_assert_failed_realm(
     189_noreturn_ void log_assert_failed_realm(
    190190                LogRealm realm,
    191191                const char *text,
    192192                const char *file,
     
    195195#define log_assert_failed(text, ...) \
    196196        log_assert_failed_realm(LOG_REALM, (text), __VA_ARGS__)
    197197
    198 noreturn void log_assert_failed_unreachable_realm(
     198_noreturn_ void log_assert_failed_unreachable_realm(
    199199                LogRealm realm,
    200200                const char *text,
    201201                const char *file,
  • src/basic/macro.h

    diff -Naur a/src/basic/macro.h b/src/basic/macro.h
    a b  
    5353#else
    5454#define _fallthrough_
    5555#endif
     56/* Define C11 noreturn without <stdnoreturn.h> and even on older gcc
     57 * compiler versions */
     58#ifndef _noreturn_
     59#if __STDC_VERSION__ >= 201112L
     60#define _noreturn_ _Noreturn
     61#else
     62#define _noreturn_ __attribute__((noreturn))
     63#endif
     64#endif
    5665
    5766/* Temporarily disable some warnings */
    5867#define DISABLE_WARNING_DECLARATION_AFTER_STATEMENT                     \
     
    414423#endif
    415424#endif
    416425
    417 /* Define C11 noreturn without <stdnoreturn.h> and even on older gcc
    418  * compiler versions */
    419 #ifndef noreturn
    420 #if __STDC_VERSION__ >= 201112L
    421 #define noreturn _Noreturn
    422 #else
    423 #define noreturn __attribute__((noreturn))
    424 #endif
    425 #endif
    426 
    427426#define DEFINE_TRIVIAL_CLEANUP_FUNC(type, func)                 \
    428427        static inline void func##p(type *p) {                   \
    429428                if (*p)                                         \
  • src/basic/process-util.c

    diff -Naur a/src/basic/process-util.c b/src/basic/process-util.c
    a b  
    987987        return cached > 0;
    988988}
    989989
    990 noreturn void freeze(void) {
     990_noreturn_ void freeze(void) {
    991991
    992992        log_close();
    993993
  • src/basic/process-util.h

    diff -Naur a/src/basic/process-util.h b/src/basic/process-util.h
    a b  
    9191
    9292bool is_main_thread(void);
    9393
    94 noreturn void freeze(void);
     94_noreturn_ void freeze(void);
    9595
    9696bool oom_score_adjust_is_valid(int oa);
    9797
  • src/core/main.c

    diff -Naur a/src/core/main.c b/src/core/main.c
    a b  
    141141static sd_id128_t arg_machine_id = {};
    142142static EmergencyAction arg_cad_burst_action = EMERGENCY_ACTION_REBOOT_FORCE;
    143143
    144 noreturn static void freeze_or_reboot(void) {
     144_noreturn_ static void freeze_or_reboot(void) {
    145145
    146146        if (arg_crash_reboot) {
    147147                log_notice("Rebooting in 10s...");
     
    156156        freeze();
    157157}
    158158
    159 noreturn static void crash(int sig) {
     159_noreturn_ static void crash(int sig) {
    160160        struct sigaction sa;
    161161        pid_t pid;
    162162
  • src/journal/test-journal-interleaving.c

    diff -Naur a/src/journal/test-journal-interleaving.c b/src/journal/test-journal-interleaving.c
    a b  
    3737
    3838static bool arg_keep = false;
    3939
    40 noreturn static void log_assert_errno(const char *text, int error, const char *file, int line, const char *func) {
     40_noreturn_ static void log_assert_errno(const char *text, int error, const char *file, int line, const char *func) {
    4141        log_internal(LOG_CRIT, error, file, line, func,
    4242                     "'%s' failed at %s:%u (%s): %m", text, file, line, func);
    4343        abort();
  • src/shared/pager.c

    diff -Naur a/src/shared/pager.c b/src/shared/pager.c
    a b  
    4747static bool stdout_redirected = false;
    4848static bool stderr_redirected = false;
    4949
    50 noreturn static void pager_fallback(void) {
     50_noreturn_ static void pager_fallback(void) {
    5151        int r;
    5252
    5353        r = copy_bytes(STDIN_FILENO, STDOUT_FILENO, (uint64_t) -1, 0);
  • src/udev/collect/collect.c

    diff -Naur a/src/udev/collect/collect.c b/src/udev/collect/collect.c
    a b  
    5858        return container_of(node, struct _mate, node);
    5959}
    6060
    61 noreturn static void sig_alrm(int signo)
     61_noreturn_ static void sig_alrm(int signo)
    6262{
    6363        exit(4);
    6464}