-
Notifications
You must be signed in to change notification settings - Fork 31
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add KDBINDINGS_ENABLE_WARN_UNUSED as a cmake option
- Loading branch information
1 parent
7f948f0
commit c0c23c8
Showing
3 changed files
with
20 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
#pragma once | ||
|
||
// Check if KDBINDINGS_ENABLE_WARN_UNUSED option is set | ||
#cmakedefine KDBINDINGS_ENABLE_WARN_UNUSED | ||
|
||
#ifdef KDBINDINGS_ENABLE_WARN_UNUSED | ||
#define KDBINDINGS_WARN_UNUSED [[nodiscard]] | ||
#else | ||
#define KDBINDINGS_WARN_UNUSED | ||
#endif |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters