diff --git a/igprof-gcc8.patch b/igprof-gcc8.patch index b86e342a73c..33e0457927b 100644 --- a/igprof-gcc8.patch +++ b/igprof-gcc8.patch @@ -7,7 +7,7 @@ index 57fe6b5..de08185 100644 SET(CMAKE_REQUIRED_FLAGS ${CMAKE_ANSI_FLAGS}) IF(CMAKE_COMPILER_IS_GNUCC) - ADD_DEFINITIONS(-ansi -pedantic -W -Wall -Wno-long-long -Werror) -+ ADD_DEFINITIONS(-ansi -pedantic -W -Wall -Wno-long-long -Werror -Wno-error=cast-function-type -Wno-error=pedantic) ++ ADD_DEFINITIONS(-ansi -pedantic -W -Wall -Wno-long-long -Werror -Wno-error=cast-function-type -Wno-error=pedantic -std=c++11) ENDIF() IF(UNIX)