Check the brake fluid level. If too low it will cause a light, when the car and brakes warm up the fluid may expand enough for the light to go out. If low it could be due to worn out brakes or a fluid leak. Either problem will eventually become serious if not corrected.