From be6f649995d00865e7c7d721f9b5bdb13fd715c0 Mon Sep 17 00:00:00 2001 From: Matthew Fernandez Date: Fri, 24 Jun 2022 22:05:31 -0700 Subject: [PATCH] prototype 'makeTetrix', squashing a '-Wmissing-prototypes' warning The missing prototype appears to have two causes: 1. 265eeb66ea0dbb4f7cdeb75dcc5f802d948b40a9 added `makeTetrix` without a prototype. 2. b4947d67a4ebd48ca0105d44f92e47f044e51600 appears to have applied some Coverity suggestions without investigating the underlying history that led to the Coverity warnings. --- cmd/tools/graph_generator.h | 1 + cmd/tools/gvgen.c | 2 -- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/cmd/tools/graph_generator.h b/cmd/tools/graph_generator.h index dce4f3f45..3879acdf7 100644 --- a/cmd/tools/graph_generator.h +++ b/cmd/tools/graph_generator.h @@ -26,6 +26,7 @@ extern void makeRandom(int, int, edgefn); extern void makeSquareGrid(int, int, int, int, edgefn); extern void makeBinaryTree(int, edgefn); extern void makeSierpinski(int, edgefn); +extern void makeTetrix(int, edgefn); extern void makeHypercube(int, edgefn); extern void makeTree(int, int, edgefn); extern void makeTriMesh(int, edgefn); diff --git a/cmd/tools/gvgen.c b/cmd/tools/gvgen.c index 4aba7bee7..4b45759e8 100644 --- a/cmd/tools/gvgen.c +++ b/cmd/tools/gvgen.c @@ -451,8 +451,6 @@ closeOpen (void) fprintf(opts.outfile, "}\ngraph {\n"); } -extern void makeTetrix(int depth, edgefn ef); - int main(int argc, char *argv[]) { GraphType graphType; -- 2.40.0