Luttinger-liquid exponent in the vicinity of charge-density wave instabilities