History

src/common.h : Warn unused.

Erik de Castro Lopo committed 17 years ago

Commit d4f1dc21 parent cc3f1612 files · +15 −1Browse files

Showing the changes to src (1 of 2 files). Show all

Unified · Split

src/common.h+6−0
@@ -46,6 +46,12 @@ typedef long int32_t ; · 45 unmodified lines
4646
4747 #define MAKE_MAGIC(a,b,c,d,e,f) ((a) + ((b) << 4) + ((c) << 8) + ((d) << 12) + ((e) << 16) + ((f) << 20))
4848
49+#ifdef __GNUC__
50+# define WARN_UNUSED __attribute__ ((warn_unused_result))
51+#else
52+# define WARN_UNUSED
53+#endif
54+
4955
5056 #include "samplerate.h"
5157

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t