Permalink
Browse files

scilab: display by default warnings for long identifier names

  • Loading branch information...
1 parent 46d1ae7 commit 0278261604114e1a23194d8823be513ed23cb119 @smarchetto smarchetto committed Jul 21, 2014
Showing with 2 additions and 8 deletions.
  1. +2 −8 Source/Modules/scilab.cxx
View
@@ -61,7 +61,6 @@ class SCILAB:public Language {
bool generateBuilder;
bool internalModule;
- bool extraWarning;
public:
/* ------------------------------------------------------------------------
@@ -83,7 +82,6 @@ class SCILAB:public Language {
libraryName = NULL;
generateBuilder = true;
internalModule = false;
- extraWarning = false;
/* Manage command line arguments */
for (int argIndex = 1; argIndex < argc; argIndex++) {
@@ -133,8 +131,6 @@ class SCILAB:public Language {
Swig_mark_arg(argIndex);
libraryName = NewString(argv[argIndex + 1]);
Swig_mark_arg(argIndex + 1);
- } else if (strcmp(argv[argIndex], "-Wextra") == 0) {
- extraWarning = true;
}
}
}
@@ -737,10 +733,8 @@ class SCILAB:public Language {
void checkIdentifierName(String *name) {
if (Len(name) > 24) {
- if (extraWarning) {
- // Warning on too long identifiers
- Swig_warning(WARN_LANG_IDENTIFIER, input_file, line_number, "Identifier %s exceeds 24 characters, it may be impossible to use it.\n", name);
- }
+ // Warning on too long identifiers
+ Swig_warning(WARN_LANG_IDENTIFIER, input_file, line_number, "Identifier %s exceeds 24 characters, it may be impossible to use it.\n", name);
}
}

0 comments on commit 0278261

Please sign in to comment.