diff mbox

[3/7] intel: Add printf attribute to intel_debug_fallback().

Message ID 1353186674-7234-3-git-send-email-eric@anholt.net (mailing list archive)
State New, archived
Headers show

Commit Message

Eric Anholt Nov. 17, 2012, 9:11 p.m. UTC
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 mbox

Patch

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);