]> granicus.if.org Git - graphviz/commitdiff
mark new_attr_ref static
authorMatthew Fernandez <matthew.fernandez@gmail.com>
Sun, 16 May 2021 18:40:39 +0000 (11:40 -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 1dfa8742c0a8126852dff4a68e11a772385d00ed..5522d27131ac1b38d25429f13b4b6da3786f52f3 100644 (file)
@@ -101,7 +101,7 @@ static attr_t *new_attr_with_ref(Agsym_t * sym)
     return attr;
 }
 
-attr_t *new_attr_ref(attr_t * refAttr)
+static attr_t *new_attr_ref(attr_t * refAttr)
 {
     attr_t *attr = malloc(sizeof(attr_t));
     *attr = *refAttr;