If you are about to have a practice session, you will repeat a certain technique or part multiple times, so I don"t think you need to warm up separately for that.
If you are about to just strum a random song or songs off the cuff, that would seem to be a good warm-up as well.
If you are going to perform for other, probably you already know what you will play and rehearse beforehand, so the warm-up could be running through the relevant chords or phrases of those songs. You may also want to play some scales as well, just to get your hands in “working mode”.