Void functions are not supposed to return values (W1023)

Doing an update from Citect Scada V7.2 till 2018R2.
During compiling I get the following warning:

Void functions are not supposed to return values (W1023)

It seems that all the "Return -1" that are used inside the Cicode Editor is the cause. Is it possible to get rid off these warnings?

Example:

If Something then

Some = 5
RETURN -1

END