Commit c90aab7f authored by Sean McBride's avatar Sean McBride
Browse files

Made a bunch of globals static

Fixes -Wmissing-variable-declarations warnings.

Change-Id: Iec87545c960e78a37b0ebaf0ee657e4974d69a94
parent c2fa863e
......@@ -41,7 +41,7 @@
#include "vtkAMRBox.h"
#include "AMRCommon.h"
struct PulseAttributes {
static struct PulseAttributes {
double origin[3]; // xyz for the center of the pulse
double width[3]; // the width of the pulse
double amplitude; // the amplitude of the pulse
......
......@@ -30,7 +30,7 @@
const int EXTENT = 100;
int WholeExtent[] = {-EXTENT, EXTENT, -EXTENT, EXTENT, -EXTENT, EXTENT};
const int NUMBER_OF_PIECES = 50;
vtkImageData* Pieces[NUMBER_OF_PIECES];
static vtkImageData* Pieces[NUMBER_OF_PIECES];
class vtkCreateImageData
{
......
......@@ -54,9 +54,9 @@
#define YCELLS 3
#define ZCELLS 3
vtkRenderer *renderer = NULL;
vtkImageData *sampleData = NULL;
int DrawSampleData = 0;
static vtkRenderer *renderer = NULL;
static vtkImageData *sampleData = NULL;
static int DrawSampleData = 0;
enum {COLORBYCELL, COLORBYPOINT};
......
......@@ -897,8 +897,8 @@ while (0)
#ifndef YYPURE
int yychar; /* the lookahead symbol */
YYSTYPE yylval; /* the semantic value of the */
static int yychar; /* the lookahead symbol */
static YYSTYPE yylval; /* the semantic value of the */
/* lookahead symbol */
#ifdef YYLSP_NEEDED
......@@ -906,11 +906,11 @@ YYLTYPE yylloc; /* location data for the lookahead */
/* symbol */
#endif
int yynerrs; /* number of parse errors so far */
static int yynerrs; /* number of parse errors so far */
#endif /* not YYPURE */
#if YYDEBUG != 0
int yydebug; /* nonzero means print parse trace */
static int yydebug; /* nonzero means print parse trace */
/* Since this is uninitialized, it does not stop multiple parsers
from coexisting. */
#endif
......@@ -4039,7 +4039,7 @@ char *yytext;
#include <string.h>
// used to reset the lexer input after initialization of VRML nodes
void (*theyyInput)(char *, int &, int);
static void (*theyyInput)(char *, int &, int);
// We define the YY_INPUT so we an change the input source later
#define YY_INPUT(buf, result, max_size) (*theyyInput)(buf, result, max_size);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment