Commit 7d0df77e authored by Ben Boeckel's avatar Ben Boeckel Committed by Code Review
Browse files

Merge topic 'unified-bindings-warning-sweep' into master

c760a265 Remove unused variables in vtkWrapPythonInit
9f3f7cef Fix warnings in generated lex.yy.c file
parents a60f2984 c760a265
......@@ -27,6 +27,15 @@ c) Remove blank lines at the beginning and end of the file
d) Replace "int yyl;" with "yy_size_t yyl;", e.g. :%s/int yyl;/yy_size_t yyl;/
e) Remove any instances of the "register" keyword.
Some known warnings with recent flex/gcc:
- Add the following code if not already present to avoid warnings about
isatty being used without a declaration:
#ifndef __cplusplus
extern int isatty(int);
#endif /* __cplusplus */
- Change 'int i;' to 'yy_size_t i;' in yy_scan_bytes (line ~3700).
Step "d" removes a potential signed/unsigned comparison compiler
warning. It might not be necessary in later versions of flex.
......
......@@ -24,6 +24,10 @@
/* end standard C headers. */
#ifndef __cplusplus
extern int isatty(int);
#endif /* __cplusplus */
/* flex integer type definitions */
#ifndef FLEXINT_H
......@@ -3701,7 +3705,7 @@ YY_BUFFER_STATE yy_scan_bytes (yyconst char * yybytes, yy_size_t _yybytes_len
YY_BUFFER_STATE b;
char *buf;
yy_size_t n;
int i;
yy_size_t i;
/* Get memory for full buffer, including space for trailing EOB's. */
n = _yybytes_len + 2;
......
......@@ -4,8 +4,6 @@
static void CreateInitFile(const char *libName, FILE *fout)
{
int i;
const char *prefix = "";
const char* dllexp = "VTK_ABI_EXPORT ";
......@@ -47,7 +45,6 @@ static void CreateImplFile(const char *libName,
{
int i;
const char *prefix = "";
const char* dllexp = "VTK_ABI_EXPORT ";
fprintf(fout,"// Generated by vtkWrapPythonInit in VTK/Wrapping\n");
......
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