[Intel-gfx] [PATCH 3/7] intel: Add printf attribute to intel_debug_fallback().

Eric Anholt eric at anholt.net
Sat Nov 17 22:11:10 CET 2012


Shuts up a bunch of warnings with xorg's shared warning flags, and
should give us more informative warnings in our code.
---
 src/intel.h |    3 +++
 1 file changed, 3 insertions(+)

diff --git a/src/intel.h b/src/intel.h
index d394750..53ce33c 100644
--- a/src/intel.h
+++ b/src/intel.h
@@ -553,6 +553,9 @@ intel_get_transformed_coordinates_3d(int x, int y, PictTransformPtr transform,
 				    float *x_out, float *y_out, float *z_out);
 
 static inline void
+intel_debug_fallback(ScrnInfoPtr scrn, const char *format, ...) _X_ATTRIBUTE_PRINTF(2, 3);
+
+static inline void
 intel_debug_fallback(ScrnInfoPtr scrn, const char *format, ...)
 {
 	intel_screen_private *intel = intel_get_screen_private(scrn);
-- 
1.7.10.4




More information about the Intel-gfx mailing list