From bc52801034e9e33d7aab0cb64c84f64cd9d4c035 Mon Sep 17 00:00:00 2001 From: Yu Watanabe Date: Wed, 10 May 2023 03:22:16 +0900 Subject: [PATCH] tree-wide: drop _pure_ attribute from non-pure functions Prompted by #27595. Follow-ups for 6723c28f36ea566faf61d3610012cd89f95ee4a0. --- src/basic/hash-funcs.h | 2 +- src/core/job.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/basic/hash-funcs.h b/src/basic/hash-funcs.h index c14302ec72..be64289252 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 df35e2a5b6..dcb5c7fff6 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); -- 2.25.1