Github user kxepal commented on a diff in the pull request:

    https://github.com/apache/couchdb/pull/348#discussion_r40656617
  
    --- Diff: rebar.config.script ---
    @@ -15,6 +15,18 @@
     ConfigureEnv = filename:join(filename:dirname(SCRIPT), "config.erl"),
     os:putenv("COUCHDB_CONFIG", ConfigureEnv).
     
    +OTP_VSN = erlang:system_info(compat_rel),
    +
    +Features = lists:filter(fun({_K, Flag}) -> Flag end, [
    +    {'HAS_CALLBACKS', OTP_VSN > 14}
    +]),
    +
    +Properties = Features ++ [
    +    {'OTP_VSN', OTP_VSN},
    +    {'OTP_RELEASE', erlang:system_info(otp_release)}
    +],
    --- End diff --
    
    Idea with guards will emit another warning about unreachable clause. So it 
seems the only way is indeed to stay with feature flags. 


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---

Reply via email to