I would never use cedar with any animal. Cedar has volatile compounds which give it the aroma. Unfortunately these compounds have been implicated as a potential health risk, especially with regards to respiratory problems (asthma, inflammation, allergic responses) and changes in the liver in many animals. I worked at a pet store many years ago and people come in and complain that there mouse, gerbil, hamster etc. died after a few days and we would ask them about the bedding. Many people lost pets due to using cedar bedding.
Pine has similar volatile compounds but not in high levels. The safest wood shavings to use wood probably be aspen. I have done a lot of online research on this issue because I have had many animals that I have cared for.