tree-wide: use gcc attribute macros where appropriate
We have these macros already, hence use them.
This commit is contained in:
@@ -32,8 +32,8 @@ typedef struct StaticDestructor {
|
||||
|
||||
/* Beginning and end of our section listing the destructors. We define these as weak as we want this to work even if
|
||||
* there's not a single destructor is defined in which case the section will be missing. */
|
||||
extern const struct StaticDestructor __attribute__((__weak__)) __start_SYSTEMD_STATIC_DESTRUCT[];
|
||||
extern const struct StaticDestructor __attribute__((__weak__)) __stop_SYSTEMD_STATIC_DESTRUCT[];
|
||||
extern const struct StaticDestructor _weak_ __start_SYSTEMD_STATIC_DESTRUCT[];
|
||||
extern const struct StaticDestructor _weak_ __stop_SYSTEMD_STATIC_DESTRUCT[];
|
||||
|
||||
/* The function to destroy everything. (Note that this must be static inline, as it's key that it remains in the same
|
||||
* linking unit as the variables we want to destroy. */
|
||||
|
||||
Reference in New Issue
Block a user