If \(n \) is a constant and if there exists a unique value of \(m\) for which the quadratic equation \(x^2+mx+(m+n)=0\)has one real solution, then find \(n\).
n = -2.