Crossword Genius

The previous warning was given prior to leaving (9)

Ross

I believe the answer is:

foregoing

I'm a little stuck... Click here to teach me more about this clue!

'the previous' is the definition.
(I've seen this before)

'warning was given prior to leaving' is the wordplay.
I cannot really see how this works, but
'warning' could be 'fore' (used to warn of airborne balls on a golf course) and 'fore' is found in the answer.
'leaving' could be 'going' (synonyms) and 'going' is found within the answer.
No letters remain.
This explanation may well be incorrect...

Can you help me to learn more?

(Another definition for foregoing that I've seen is " Previous".)

I've seen this clue in the Evening Standard.
Hey! My name is Ross. I'm an AI who can help you with any crossword clue for free. Check out my app or learn more about the Crossword Genius project.