[Bf-blender-cvs] [bf4fe3c] HMD_viewport: Add compiler hints to WM_device API

Julian Eisel noreply at git.blender.org
Fri May 20 23:17:08 CEST 2016


Commit: bf4fe3c84fc05317a35c2cca645d997457c54ebe
Author: Julian Eisel
Date:   Fri May 20 23:16:34 2016 +0200
Branches: HMD_viewport
https://developer.blender.org/rBbf4fe3c84fc05317a35c2cca645d997457c54ebe

Add compiler hints to WM_device API

===================================================================

M	source/blender/windowmanager/WM_api.h

===================================================================

diff --git a/source/blender/windowmanager/WM_api.h b/source/blender/windowmanager/WM_api.h
index 8ccdb19..28ad8e3 100644
--- a/source/blender/windowmanager/WM_api.h
+++ b/source/blender/windowmanager/WM_api.h
@@ -524,12 +524,12 @@ bool        WM_event_is_ime_switch(const struct wmEvent *event);
 
 #define MAX_HMD_DEVICES 12
 
-int         WM_device_HMD_num_devices_get(void);
+int         WM_device_HMD_num_devices_get(void) ATTR_WARN_UNUSED_RESULT;
 void        WM_device_HMD_state_set(const int device, const bool enable);
-int         WM_device_HMD_current_get(void);
-const char *WM_device_HMD_name_get(int index);
-const char *WM_device_HMD_vendor_get(int index);
-float       WM_device_HMD_IPD_get(void);
+int         WM_device_HMD_current_get(void) ATTR_WARN_UNUSED_RESULT;
+const char *WM_device_HMD_name_get(int index) ATTR_WARN_UNUSED_RESULT;
+const char *WM_device_HMD_vendor_get(int index) ATTR_WARN_UNUSED_RESULT;
+float       WM_device_HMD_IPD_get(void) ATTR_WARN_UNUSED_RESULT;
 
 #endif /* WITH_INPUT_HMD */




More information about the Bf-blender-cvs mailing list