]> granicus.if.org Git - graphviz/commitdiff
mark new_attr_with_ref static
authorMatthew Fernandez <matthew.fernandez@gmail.com>
Sun, 16 May 2021 18:39:39 +0000 (11:39 -0700)
committerMatthew Fernandez <matthew.fernandez@gmail.com>
Fri, 28 May 2021 00:03:30 +0000 (17:03 -0700)
This function is not used outside of its containing file. Squashes a
-Wmissing-prototypes warning.

cmd/smyrna/gui/frmobjectui.c

index d61d2d9497f1db463bdadda035319860c40624d2..1dfa8742c0a8126852dff4a68e11a772385d00ed 100644 (file)
@@ -77,7 +77,7 @@ attr_t *new_attr(void)
 }
 
 
-attr_t *new_attr_with_ref(Agsym_t * sym)
+static attr_t *new_attr_with_ref(Agsym_t * sym)
 {
     attr_t *attr = new_attr();
     attr->name = safestrdup(sym->name);