From mboxrd@z Thu Jan 1 00:00:00 1970 From: Eric Anholt Subject: [PATCH 3/7] intel: Add printf attribute to intel_debug_fallback(). Date: Sat, 17 Nov 2012 13:11:10 -0800 Message-ID: <1353186674-7234-3-git-send-email-eric@anholt.net> References: <1353186674-7234-1-git-send-email-eric@anholt.net> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <1353186674-7234-1-git-send-email-eric@anholt.net> List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: intel-gfx-bounces+gcfxdi-intel-gfx=m.gmane.org@lists.freedesktop.org Errors-To: intel-gfx-bounces+gcfxdi-intel-gfx=m.gmane.org@lists.freedesktop.org To: intel-gfx@lists.freedesktop.org List-Id: intel-gfx@lists.freedesktop.org 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