Skip to content
Snippets Groups Projects
Commit 6eab8c3d authored by Hahn, Steven's avatar Hahn, Steven
Browse files

Fix warnings in generated code.

parent 2afba869
No related branches found
No related tags found
No related merge requests found
......@@ -385,7 +385,7 @@ def writeTestDescription( output, suite, test ):
if not options.noStaticInit:
output.write( ' %s() : CxxTest::RealTestDescription( %s, %s, %s, "%s" ) {}\n' %
(test['class'], suite['tlist'], suite['dobject'], test['line'], test['name']) )
output.write( ' void runTest() { %s }\n' % runBody( suite, test ) )
output.write( ' void runTest() final { %s }\n' % runBody( suite, test ) )
output.write( '} %s;\n\n' % test['object'] )
def runBody( suite, test ):
......
......@@ -43,7 +43,8 @@ endif()
# Check if we have a new enough version for these flags
if ( CMAKE_COMPILER_IS_GNUCXX )
if (NOT (GCC_COMPILER_VERSION VERSION_LESS "5.1"))
set(GNUFLAGS "${GNUFLAGS} -Wsuggest-override -Wsuggest-final-types -Wsuggest-final-methods")
set(GNUFLAGS "${GNUFLAGS} -Wsuggest-override")
#set(GNUFLAGS "${GNUFLAGS} -Wsuggest-final-types -Wsuggest-final-methods")
endif()
endif()
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment