guard gcc-specific things with Q_CC_GNU to avoid problems elsewhere

wilder
David Faure 12 years ago
parent 3b99ed63af
commit a306f1faf4
  1. 10
      src/core/kcoreconfigskeleton.cpp

@ -1107,10 +1107,14 @@ void KCoreConfigSkeleton::usrSetDefaults()
void KCoreConfigSkeleton::usrRead()
{
#ifdef Q_CC_GNU
#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Wdeprecated-declarations"
usrReadConfig();
#endif
usrReadConfig();
#ifdef Q_CC_GNU
#pragma GCC diagnostic pop
#endif
}
void KCoreConfigSkeleton::usrReadConfig()
@ -1119,10 +1123,14 @@ void KCoreConfigSkeleton::usrReadConfig()
bool KCoreConfigSkeleton::usrSave()
{
#ifdef Q_CC_GNU
#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Wdeprecated-declarations"
#endif
return usrWriteConfig();
#ifdef Q_CC_GNU
#pragma GCC diagnostic pop
#endif
}
bool KCoreConfigSkeleton::usrWriteConfig()

Loading…
Cancel
Save