Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 785bb4c

Browse filesBrowse files
committed
[core][Binary.h] stop deprecation warnings
1 parent 6846ffd commit 785bb4c
Copy full SHA for 785bb4c

File tree

Expand file treeCollapse file tree

1 file changed

+4
-0
lines changed
Filter options
Expand file treeCollapse file tree

1 file changed

+4
-0
lines changed

‎core/Binary.h

Copy file name to clipboardExpand all lines: core/Binary.h
+4Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@
2121
#ifndef Binary_h
2222
#define Binary_h
2323

24+
#if 0 // stop deprecation warnings
2425
/* If supported, 0b binary literals are preferable to these constants.
2526
* In that case, warn the user about these being deprecated (if possible). */
2627
#if __cplusplus >= 201402L
@@ -33,6 +34,9 @@
3334
/* binary literals not supported, or "deprecated" warning not displayable */
3435
#define DEPRECATED(x)
3536
#endif
37+
#else
38+
#define DEPRECATED(x)
39+
#endif
3640

3741
enum {
3842
B0 DEPRECATED(0b0 ) = 0,

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.