diff options
author | monty@mysql.com <> | 2004-05-28 00:03:19 +0300 |
---|---|---|
committer | monty@mysql.com <> | 2004-05-28 00:03:19 +0300 |
commit | 518019f511ae292db9c0b1ee98fa7b96270e3e9c (patch) | |
tree | 31f895c8a1ad0626aa679e66cfa3ecfcbb53f496 /scripts | |
parent | e9b7e3baa8f6c48360c76c4f61ccc474e9703805 (diff) | |
download | mariadb-git-518019f511ae292db9c0b1ee98fa7b96270e3e9c.tar.gz |
Remove some code from sql_yacc.cc that doesn't do anything except produce warnings on VC++
Diffstat (limited to 'scripts')
-rwxr-xr-x | scripts/make_win_src_distribution.sh | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/scripts/make_win_src_distribution.sh b/scripts/make_win_src_distribution.sh index 68ba488f3d5..f6102085021 100755 --- a/scripts/make_win_src_distribution.sh +++ b/scripts/make_win_src_distribution.sh @@ -302,10 +302,12 @@ do done # -# Fix some windows files +# Fix some windows files to avoid compiler warnings # -./extra/replace std:: "" -- $BASE/sql/sql_yacc.cpp +./extra/replace std:: "" < $BASE/sql/sql_yacc.cpp | sed '/^ *switch (yytype)$/ { N; /\n *{$/ { N; /\n *default:$/ { N; /\n *break;$/ { N; /\n *}$/ d; };};};} ' > $BASE/sql/sql_yacc.cpp-new +mv $BASE/sql/sql_yacc.cpp-new $BASE/sql/sql_yacc.cpp + unix_to_dos $BASE/README mv $BASE/README $BASE/README.txt |