Permalink
Browse files

do not use warn_unused_result compiler attribute when building C++

  • Loading branch information...
rsms committed Jan 2, 2011
1 parent ca145dc commit 0f66c6fe3ad8939fcc773e289816f5cb99932f20
Showing with 5 additions and 1 deletion.
  1. +5 −1 HRefcountLogger.h
View
@@ -1,7 +1,11 @@
#import <Cocoa/Cocoa.h>
#ifndef WARN_UNUSED
-#define WARN_UNUSED __attribute__((warn_unused_result))
+ #ifndef __cplusplus
+ #define WARN_UNUSED __attribute__((warn_unused_result))
+ #else
+ #define WARN_UNUSED
+ #endif
#endif
@interface HRefcountLogger : NSObject {

0 comments on commit 0f66c6f

Please sign in to comment.