From: Yu Watanabe Date: Tue, 9 May 2023 18:22:16 +0000 (+0900) Subject: tree-wide: drop _pure_ attribute from non-pure functions X-Git-Tag: v254-rc1~511^2~3 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=bc52801034e9e33d7aab0cb64c84f64cd9d4c035;p=thirdparty%2Fsystemd.git tree-wide: drop _pure_ attribute from non-pure functions Prompted by #27595. Follow-ups for 6723c28f36ea566faf61d3610012cd89f95ee4a0. --- diff --git a/src/basic/hash-funcs.h b/src/basic/hash-funcs.h index c14302ec722..be64289252a 100644 --- a/src/basic/hash-funcs.h +++ b/src/basic/hash-funcs.h @@ -102,7 +102,7 @@ extern const struct hash_ops uint64_hash_ops; /* On some archs dev_t is 32bit, and on others 64bit. And sometimes it's 64bit on 32bit archs, and sometimes 32bit on * 64bit archs. Yuck! */ #if SIZEOF_DEV_T != 8 -void devt_hash_func(const dev_t *p, struct siphash *state) _pure_; +void devt_hash_func(const dev_t *p, struct siphash *state); #else #define devt_hash_func uint64_hash_func #endif diff --git a/src/core/job.h b/src/core/job.h index df35e2a5b62..dcb5c7fff6c 100644 --- a/src/core/job.h +++ b/src/core/job.h @@ -220,7 +220,7 @@ char *job_dbus_path(Job *j); void job_shutdown_magic(Job *j); -int job_get_timeout(Job *j, usec_t *timeout) _pure_; +int job_get_timeout(Job *j, usec_t *timeout); bool job_may_gc(Job *j); void job_add_to_gc_queue(Job *j);