Hypodermic needle
Fracking
Solar panels
This argument is a little pedantic, but here are some examples that contradict your assertion.
Consider this: without the bomb we would not have nuclear power. Without modern warfare we would not have modern medicine. There are other examples, but you would have been worse off limiting these. Not to mention non-technological benefits like geopolitical stability from MAD.
Better clothing for soldiers, tents, and more clothing for them. Plenty more I'm sure. Early war planes used canvas instead of metal as outside cover as they went out to fight each other.
> Hypodermic needle
Enhancement of battlefield medicine. Fix them faster so they can continue to fight.
> Fracking
Cheaper and continued source of fuel for war machinery
> Solar
Spy satellites, power for field communications. It's only the beginning.
Nuclear power is a perfect example of the dangers of technology. The world powers have decided to limit its spread because it's so dangerous to let everyone have it. If nuclear bomb tech was free to run its course they would be small, cheap and every country would have some. And most would not hesitate to use them.
Furthermore, to circle back to your original point: even if we accept that the cotton gin is a technology "used for war", it most certainly was not the first nor the primary use of that technology (the first use was clothing).
So from my view it not only aided the war once it started. But it was also a contributor to its beginning.
But whatever I say you'll find fault. You'll focus on the small details. I'm a techie too and I sometimes find myself arguing the smallest detail whether it has consequences or not. It's that type of attention to detail that keeps us employed when we need to make sure things are working.
The bottom line is that you think tech is great while I think it's great but we have to be careful with it's development and use.
All I can say is that it's worth being careful where we step.