Skip to content

Commit

Permalink
settings enum: wrap RUN_IN_CGROUP in #ifdef
Browse files Browse the repository at this point in the history
If cgroup support is not compiled in, exclude RUN_IN_CGROUP from the
setting_id_t enumeration to avoid compilation warnings about not
handling all cases.
  • Loading branch information
davmac314 committed Sep 12, 2024
1 parent 3e58b29 commit 24eb3f2
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/includes/load-service.h
Original file line number Diff line number Diff line change
Expand Up @@ -229,7 +229,9 @@ enum class setting_id_t {
// Prefixed with SETTING_ to avoid name collision with system macros:
SETTING_RLIMIT_NOFILE, SETTING_RLIMIT_CORE, SETTING_RLIMIT_DATA, SETTING_RLIMIT_ADDRSPACE,
// Possibly unsupported depending on platform/build options:
#if SUPPORT_CGROUPS
RUN_IN_CGROUP
#endif
};

struct setting_details {
Expand Down

0 comments on commit 24eb3f2

Please sign in to comment.