fixed warning issues in generated files, by adding 'pragma gcc diagnostic' and removing three function (readd if needed)