OSDN Git Service

* c-common.c (c_format_attribute_table): Make format and
[pf3gnuchains/gcc-fork.git] / gcc / c-typeck.c
index c407f16..09ebf4d 100644 (file)
@@ -1510,8 +1510,8 @@ build_function_call (function, params)
 
   /* Check for errors in format strings.  */
 
-  if (warn_format && (name || assembler_name))
-    check_function_format (NULL, name, assembler_name, coerced_params);
+  if (warn_format)
+    check_function_format (NULL, TYPE_ATTRIBUTES (fntype), coerced_params);
 
   /* Recognize certain built-in functions so we can make tree-codes
      other than CALL_EXPR.  We do this when it enables fold-const.c