Food shortages are not a function of climate. The climate change is actually making the planet "greener" and capable of producing even more food. In fact, we may well be approaching a time when food and energy are almost limitless resources... not the same as saying "cheap". But that to will happen.
We have not begun to tap the sheer volume of food that can be produced thanks to the greater concentration of CO2 (which is why greenhouses use double the current atmospheric CO2 level to improve plant growth rates). We also have unlimited water (not drinking water, but brown wastewater, we humans produce a lot of wastewater especially in our cities).
Harnessing the abundant CO2, wastewater, and sunlight, will allow for urban vertical farming... this consists of skyscraper like structures with each floor producing three crops a year (20 floors producing more than 60 times as much as a typical grain farmer yields from the land). And every input except "sunlight" comes is the product of "recycling" waste.
These urban farms can be used to "recycle" human waste as fertilizer, CO2, and "brown water". Need more "carbon fuel", just make it.
We are starting to build massive algae farms that will again take advantage of the CO2 (the single best place to build them is alongside a fossil fuel powered electricity generation plant where the CO2 can be harvested to produce... carbon fuel).
Check the links below... take a time out from the politics and open your eyes to huge potential and untapped potential of the planet. It is true geopolitics may undermine the benefits of global warming through wars, but if we can make it to the next century, the declining population will remove much of the impetuous for nations to "expand" especially since most of these new technologies don't need "land based" resources.
I am concerned that governments are focused more on eliminating valuable CO2 emissions, than harnessing all the food and energy those emissions could be used to produce. It is like we trying to shoot ourselves in the foot.
Life on our planet was built on CO2. The problem is we are using more carbon energy than the planet is producing. So, the solution is not to reduce our use of carbon energy, but to increase our production of it. If we produce more carbon energy than we need, we can simply pump it back into the ground for future use.
https://www.bing.com/videos/search?q=Algae+Energy&&view=detail&mid=579924C086EC4FDAEC27579924C086EC4FDAEC27&&FORM=VRDGAR&ru=%2Fvideos%2Fsearch%3Fq%3DAlgae%2BEnergy%26FORM%3DVARSQP
https://www.techeblog.com/massive-vertical-urban-farm-looks-like-something-straight-from-a-sci-fi-movie/
https://www.countryliving.com/uk/news/a26510440/nasa-green-planet/#:~:text=In%20good%20news%20for%20our%20planet%2C%20NASA%20have,countries%20to%20thank%20for%20the%20boost%20in%20greenery.