Skip to content

Commit 60bf936

Browse files
fix(env): remove nodiscard (#27)
1 parent d219f38 commit 60bf936

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

  • src/include/lizardbyte/common

src/include/lizardbyte/common/env.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ namespace lizardbyte::common {
2929
* @param value The value to set the environment variable to.
3030
* @return 0 on success, non-zero on failure.
3131
*/
32-
[[nodiscard]] int set_env(const std::string &name, const std::string &value);
32+
int set_env(const std::string &name, const std::string &value);
3333

3434
/**
3535
* @brief Append a string to an environment variable if it does not already contain it.
@@ -38,12 +38,12 @@ namespace lizardbyte::common {
3838
* @param separator Optional separator for the new value if it is not the first one.
3939
* @return 0 on success, non-zero on failure.
4040
*/
41-
[[nodiscard]] int append_env(const std::string &name, const std::string &value, const std::string &separator = "");
41+
int append_env(const std::string &name, const std::string &value, const std::string &separator = "");
4242

4343
/**
4444
* @brief Unset an environment variable.
4545
* @param name The name of the environment variable.
4646
* @return 0 on success, non-zero on failure.
4747
*/
48-
[[nodiscard]] int unset_env(const std::string &name);
48+
int unset_env(const std::string &name);
4949
} // namespace lizardbyte::common

0 commit comments

Comments
 (0)