]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
ENGR00276705 Fix build error for wayland driver in Yocto environment
authorganyong <ganyong@lijian-ubuntu-dev.(none)>
Wed, 28 Aug 2013 06:31:36 +0000 (14:31 +0800)
committerJason Liu <r64343@freescale.com>
Wed, 30 Oct 2013 01:55:04 +0000 (09:55 +0800)
Update the macro gcmPROFILE_DECLARE_ONLY to fix Werror(unused-local-typedefs)
when gcdENABLE_PROFILING is not enabled.

Signed-off-by Yong Gan <B45748@freescale.com>

drivers/mxc/gpu-viv/hal/kernel/inc/gc_hal_base.h [changed mode: 0644->0755]

old mode 100644 (file)
new mode 100755 (executable)
index 44689b0..926de6e
@@ -1507,7 +1507,7 @@ gcoOS_QueryProfileTickRate(
 #   define gcmPROFILE_QUERY(start, ticks)   do { } while (gcvFALSE)
 #   define gcmPROFILE_ONLY(x)               do { } while (gcvFALSE)
 #   define gcmPROFILE_ELSE(x)               x
-#   define gcmPROFILE_DECLARE_ONLY(x)       typedef x
+#   define gcmPROFILE_DECLARE_ONLY(x)       do { } while (gcvFALSE) 
 #   define gcmPROFILE_DECLARE_ELSE(x)       x
 #endif