diff --git a/CMakeLists.txt b/CMakeLists.txt index a5a4893a4c..717074f488 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -333,7 +333,6 @@ add_compile_options( -Wno-incompatible-function-pointer-types -Wno-return-type -Wno-unused-local-typedef - -Wno-incompatible-pointer-types -Wno-shift-negative-value -Wno-unknown-warning-option ) diff --git a/smalltalksrc/VMMaker/SimpleStackBasedCogit.class.st b/smalltalksrc/VMMaker/SimpleStackBasedCogit.class.st index 7b85fae92e..323609b917 100644 --- a/smalltalksrc/VMMaker/SimpleStackBasedCogit.class.st +++ b/smalltalksrc/VMMaker/SimpleStackBasedCogit.class.st @@ -952,7 +952,7 @@ SimpleStackBasedCogit >> compilePrimitive [ ((primitiveRoutine := coInterpreter functionPointerForCompiledMethod: methodObj primitiveIndex: primitiveIndex) = 0 or: [ - primitiveRoutine = #primitiveFail ]) ifTrue: [ + primitiveRoutine = (self cCoerceSimple: #primitiveFail to: #'void *') ]) ifTrue: [ ^ self genFastPrimFail ]. "no primitive" minValidCallAddress := minValidCallAddress min: primitiveRoutine asUnsignedInteger.