nvc0: compile nve4_cache_split_name() only in debug build
authorEmil Velikov <emil.l.velikov@gmail.com>
Thu, 11 Apr 2013 23:22:31 +0000 (00:22 +0100)
committerChristoph Bumiller <christoph.bumiller@speed.at>
Fri, 12 Apr 2013 15:09:03 +0000 (17:09 +0200)
As otherwise it is unused - pointed out by gcc

nve4_compute.c:586:20: warning: 'nve4_cache_split_name' defined but not used [-Wunused-function]
 static const char *nve4_cache_split_name(unsigned value)
                    ^

Signed-off-by: Emil Velikov <emil.l.velikov@gmail.com>
src/gallium/drivers/nvc0/nve4_compute.c

index d7aa61ec81d10e6a9123c21d956c1a17f2a73042..255053072e4840fe465a873b6a277186931d4ce4 100644 (file)
@@ -583,6 +583,7 @@ nve4_compute_validate_textures(struct nvc0_context *nvc0)
 }
 
 
+#ifdef DEBUG
 static const char *nve4_cache_split_name(unsigned value)
 {
    switch (value) {
@@ -594,7 +595,6 @@ static const char *nve4_cache_split_name(unsigned value)
    }
 }
 
-#ifdef DEBUG
 static void
 nve4_compute_dump_launch_desc(const struct nve4_cp_launch_desc *desc)
 {