]> git.ipfire.org Git - thirdparty/rrdtool-1.x.git/commitdiff
src/rrd_graph_helper.c: fix icc warnings "external declaration in primary source...
authorMarek Schimara <Marek.Schimara@bull.net>
Fri, 2 Sep 2016 11:54:58 +0000 (13:54 +0200)
committerMarek Schimara <Marek.Schimara@bull.net>
Fri, 2 Sep 2016 13:31:38 +0000 (15:31 +0200)
        parse_print(), parse_grad(): removed as declared but undefined

src/rrd_graph_helper.c

index f0e7eec8953bb94d9838e16421affb7c09e27a21..212526ce8aaea45aab282bd1eb5626f626dc0e1c 100644 (file)
@@ -301,8 +301,7 @@ int parseArguments(const char* origarg, parsedargs_t* pa) {
   return 0;
 }
 
-int parse_color( const char *const, struct gfx_color_t *);
-int parse_color( const char *const string, struct gfx_color_t *c)
+static int parse_color( const char *const string, struct gfx_color_t *c)
 {
   unsigned int r = 0, g = 0, b = 0, a = 0, i;
 
@@ -839,25 +838,22 @@ static graph_desc_t* newGraphDescription(image_desc_t *const im,enum gf_en gf,pa
 #define set_match(str,pat,cmd) if (strcmp(pat, str) == 0)  { cmd ;}
 
 /* prototypes */
-int parse_axis(enum gf_en,parsedargs_t*,image_desc_t *const);
-int parse_def(enum gf_en,parsedargs_t*,image_desc_t *const);
-int parse_cvdef(enum gf_en,parsedargs_t*,image_desc_t *const);
-int parse_line(enum gf_en,parsedargs_t*,image_desc_t *const);
-int parse_area(enum gf_en,parsedargs_t*,image_desc_t *const);
-int parse_stack(enum gf_en,parsedargs_t*,image_desc_t *const);
-int parse_print(enum gf_en,parsedargs_t*,image_desc_t *const);
-int parse_gprint(enum gf_en,parsedargs_t*,image_desc_t *const);
-int parse_comment(enum gf_en,parsedargs_t*,image_desc_t *const);
-int parse_hvrule(enum gf_en,parsedargs_t*,image_desc_t *const);
-int parse_grad(enum gf_en,parsedargs_t*,image_desc_t *const);
-int parse_tick(enum gf_en,parsedargs_t*,image_desc_t *const);
-int parse_textalign(enum gf_en,parsedargs_t*,image_desc_t *const);
-int parse_shift(enum gf_en,parsedargs_t*,image_desc_t *const);
-int parse_xport(enum gf_en,parsedargs_t*,image_desc_t *const);
+static int parse_axis(enum gf_en,parsedargs_t*,image_desc_t *const);
+static int parse_def(enum gf_en,parsedargs_t*,image_desc_t *const);
+static int parse_cvdef(enum gf_en,parsedargs_t*,image_desc_t *const);
+static int parse_line(enum gf_en,parsedargs_t*,image_desc_t *const);
+static int parse_area(enum gf_en,parsedargs_t*,image_desc_t *const);
+static int parse_stack(enum gf_en,parsedargs_t*,image_desc_t *const);
+static int parse_gprint(enum gf_en,parsedargs_t*,image_desc_t *const);
+static int parse_comment(enum gf_en,parsedargs_t*,image_desc_t *const);
+static int parse_hvrule(enum gf_en,parsedargs_t*,image_desc_t *const);
+static int parse_tick(enum gf_en,parsedargs_t*,image_desc_t *const);
+static int parse_textalign(enum gf_en,parsedargs_t*,image_desc_t *const);
+static int parse_shift(enum gf_en,parsedargs_t*,image_desc_t *const);
+static int parse_xport(enum gf_en,parsedargs_t*,image_desc_t *const);
 
 /* this is needed for LINE,AREA,STACk so that the labels get done correctly... */
-void legend_shift(char *legend);
-void legend_shift(char *legend)
+static void legend_shift(char *legend)
 {
   if (!legend || !legend[0]) { return; }
   memmove(legend+2,legend,strlen(legend));
@@ -866,7 +862,7 @@ void legend_shift(char *legend)
 }
 
 /* implementations */
-int parse_axis(enum gf_en gf,parsedargs_t*pa,image_desc_t *const im){
+static int parse_axis(enum gf_en gf,parsedargs_t*pa,image_desc_t *const im){
 
 #if 0
   /* define X or y axis */
@@ -911,7 +907,7 @@ int parse_axis(enum gf_en gf,parsedargs_t*pa,image_desc_t *const im){
   return 0;
 }
 
-int parse_def(enum gf_en gf,parsedargs_t*pa,image_desc_t *const im){
+static int parse_def(enum gf_en gf,parsedargs_t*pa,image_desc_t *const im){
   /* get new graph that we fill */
   graph_desc_t *gdp=newGraphDescription(im,gf,pa,
                                        PARSE_VNAMERRDDSCF
@@ -978,7 +974,7 @@ int parse_def(enum gf_en gf,parsedargs_t*pa,image_desc_t *const im){
   return 0;
 }
 
-int parse_cvdef(enum gf_en gf,parsedargs_t*pa,image_desc_t *const im){
+static int parse_cvdef(enum gf_en gf,parsedargs_t*pa,image_desc_t *const im){
   /* get new graph that we fill */
   graph_desc_t *gdp=newGraphDescription(im,gf,pa,
                                        PARSE_VNAMERPN
@@ -1032,7 +1028,7 @@ int parse_cvdef(enum gf_en gf,parsedargs_t*pa,image_desc_t *const im){
 }
 
 
-int parse_line(enum gf_en gf,parsedargs_t*pa,image_desc_t *const im){
+static int parse_line(enum gf_en gf,parsedargs_t*pa,image_desc_t *const im){
   /* get new graph that we fill */
   graph_desc_t *gdp=newGraphDescription(im,gf,pa,
                                        PARSE_VNAMECOLORLEGEND
@@ -1077,7 +1073,7 @@ int parse_line(enum gf_en gf,parsedargs_t*pa,image_desc_t *const im){
   return 0;
 }
 
-int parse_area(enum gf_en gf,parsedargs_t*pa,image_desc_t *const im){
+static int parse_area(enum gf_en gf,parsedargs_t*pa,image_desc_t *const im){
   /* get new graph that we fill */
   graph_desc_t *gdp=newGraphDescription(im,gf,pa,
                                        PARSE_VNAMECOLORLEGEND
@@ -1115,7 +1111,7 @@ int parse_area(enum gf_en gf,parsedargs_t*pa,image_desc_t *const im){
   return 0;
 }
 
-int parse_stack(enum gf_en gf,parsedargs_t*pa,image_desc_t *const im){
+static int parse_stack(enum gf_en gf,parsedargs_t*pa,image_desc_t *const im){
   /* get new graph that we fill */
   graph_desc_t *gdp=newGraphDescription(im,gf,pa,
                                        PARSE_VNAMECOLORLEGEND
@@ -1170,7 +1166,7 @@ int parse_stack(enum gf_en gf,parsedargs_t*pa,image_desc_t *const im){
   return 0;
 }
 
-int parse_hvrule(enum gf_en gf,parsedargs_t*pa,image_desc_t *const im){
+static int parse_hvrule(enum gf_en gf,parsedargs_t*pa,image_desc_t *const im){
   /* get new graph that we fill */
   graph_desc_t *gdp=newGraphDescription(im,gf,pa,
                                        PARSE_VNAMECOLORLEGEND
@@ -1222,7 +1218,7 @@ int parse_hvrule(enum gf_en gf,parsedargs_t*pa,image_desc_t *const im){
   return 0;
 }
 
-int parse_gprint(enum gf_en gf,parsedargs_t*pa,image_desc_t *const im) {
+static int parse_gprint(enum gf_en gf,parsedargs_t*pa,image_desc_t *const im) {
   /* get new graph that we fill */
   graph_desc_t *gdp=newGraphDescription(im,gf,pa,
                                        PARSE_VNAMEREF
@@ -1297,7 +1293,7 @@ int parse_gprint(enum gf_en gf,parsedargs_t*pa,image_desc_t *const im) {
   return 0;
 }
 
-int parse_comment(enum gf_en gf,parsedargs_t*pa,image_desc_t *const im){
+static int parse_comment(enum gf_en gf,parsedargs_t*pa,image_desc_t *const im){
   /* get new graph that we fill */
   graph_desc_t *gdp=newGraphDescription(im,gf,pa,
                                        PARSE_LEGEND
@@ -1320,7 +1316,7 @@ int parse_comment(enum gf_en gf,parsedargs_t*pa,image_desc_t *const im){
   return 0;
 }
 
-int parse_tick(enum gf_en gf,parsedargs_t* pa,image_desc_t *const im) {
+static int parse_tick(enum gf_en gf,parsedargs_t* pa,image_desc_t *const im) {
   /* get new graph that we fill */
   graph_desc_t *gdp=newGraphDescription(im,gf,pa,
                                        PARSE_VNAMECOLORFRACTIONLEGEND
@@ -1345,7 +1341,7 @@ int parse_tick(enum gf_en gf,parsedargs_t* pa,image_desc_t *const im) {
   return 0;
 }
 
-int parse_textalign(enum gf_en gf,parsedargs_t* pa,image_desc_t *const im) {
+static int parse_textalign(enum gf_en gf,parsedargs_t* pa,image_desc_t *const im) {
   keyvalue_t *kv;
   /* get new graph that we fill */
   graph_desc_t *gdp=newGraphDescription(im,gf,pa,0);
@@ -1382,7 +1378,7 @@ int parse_textalign(enum gf_en gf,parsedargs_t* pa,image_desc_t *const im) {
   return 0;
 }
 
-int parse_shift(enum gf_en gf,parsedargs_t* pa,image_desc_t *const im) {
+static int parse_shift(enum gf_en gf,parsedargs_t* pa,image_desc_t *const im) {
   keyvalue_t *kv;
   /* get new graph that we fill */
   graph_desc_t *gdp=newGraphDescription(im,gf,pa,PARSE_VNAMEREFPOS);
@@ -1452,7 +1448,7 @@ int parse_shift(enum gf_en gf,parsedargs_t* pa,image_desc_t *const im) {
   /* and return */
   return 0;
 }
-int parse_xport(enum gf_en gf,parsedargs_t* pa,image_desc_t *const im) {
+static int parse_xport(enum gf_en gf,parsedargs_t* pa,image_desc_t *const im) {
   /* get new graph that we fill */
   graph_desc_t *gdp=newGraphDescription(im,gf,pa,PARSE_VNAMECOLORLEGEND);
   if (!gdp) { return 1;}