Bug#24045: #warning applies only to GNU C
Albert Chin-A-Young
china at thewrittenword.com
Thu Apr 12 05:54:37 UTC 2001
Package: kdevelop
Version: 2.1.1
1. Define max for those systems that do not have it defined.
2. #warning should be wrapped with #ifdef __GNUC__.
--
albert chin (china at thewrittenword.com)
-- snip snip
--- kdevelop/dbg/breakpointdialog.cpp.orig Wed Apr 4 08:04:34 2001
+++ kdevelop/dbg/breakpointdialog.cpp Wed Apr 4 08:07:12 2001
@@ -31,6 +31,10 @@
#include <algorithm>
+#ifndef max
+#define max(a,b) ((a) < (b) ? (b) : (a))
+#endif
+
/***************************************************************************/
BPDialog::BPDialog(Breakpoint* BP, QWidget *parent, const char *name) :
--- kdevelop/kwrite//kwview.cpp.orig Wed Apr 4 08:13:28 2001
+++ kdevelop/kwrite//kwview.cpp Wed Apr 4 08:13:47 2001
@@ -1717,7 +1717,9 @@
emit statusMsg(name);
}
}
+#ifdef __GNUC__
#warning FIXME KFM stuff
+#endif
// } else {
// // url
// if (kfm != 0L) {
@@ -1775,7 +1777,9 @@
setModified(false);
}
}
+#ifdef __GNUC__
#warning FIXME KFM stuff
+#endif
// else
// {
// // url
--- kdevelop/ckdevelop.cpp.orig Wed Apr 4 08:44:27 2001
+++ kdevelop/ckdevelop.cpp Wed Apr 4 08:44:37 2001
@@ -226,7 +226,9 @@
if (prj)
prjName = "\n" + prj->getProjectName() + "\n\n";
+#ifdef __GNUC__
#warning FIXME MessageBox needed with an extra button.
+#endif
// KMessageBox *files_close=
// new KMessageBox(this,
// i18n("The project\n")+prjName
--- kdevelop/ckappwizard.cpp.orig Wed Apr 4 08:55:49 2001
+++ kdevelop/ckappwizard.cpp Wed Apr 4 08:56:05 2001
@@ -1977,7 +1977,9 @@
pm.load(locate("appdata", "pics/normalApp.png"));
setTitle(page4, i18n("Headertemplate for .cpp-files"));
+#ifdef __GNUC__
#warning FIXME ????
+#endif
// if (page==4)
// showPage(page4);
--- kdevelop/klangcombo.cpp.orig Wed Apr 4 09:07:07 2001
+++ kdevelop/klangcombo.cpp Wed Apr 4 09:07:17 2001
@@ -59,7 +59,9 @@
if(style() == MotifStyle){
pm.fill(colorGroup().background());
}
+#ifdef __GNUC__
#warning FIXME windowcolor is ???
+#endif
// else{
// pm.fill(kapp->windowColor);
// }
--- kdevelop/ckdevaccel.cpp.orig Wed Apr 4 09:49:29 2001
+++ kdevelop/ckdevaccel.cpp Wed Apr 4 09:49:39 2001
@@ -109,7 +109,9 @@
const QObject* receiver, const char* member,
bool activate)
{
+#ifdef __GNUC__
#warning FIXME
+#endif
if (KStdAccel::action(accel)) // && !aKeyDict[ KStdAccel::action(accel) ]){
insertStdItem(accel);
--- kdevelop/cdocbrowser.cpp.orig Wed Apr 4 09:56:41 2001
+++ kdevelop/cdocbrowser.cpp Wed Apr 4 09:57:21 2001
@@ -54,7 +54,9 @@
//#include <iostream.h>
+#ifdef __GNUC__
#warning FIXME This needs some rework to use KHTMLParts
+#endif
int CDocBrowser::fSize = 12;
QString CDocBrowser::standardFont;
@@ -201,7 +203,9 @@
underlineLinks = config->readBoolEntry( "UnderlineLinks", true );
forceDefaults = config->readBoolEntry( "ForceDefaultColors", false );
+#ifdef __GNUC__
#warning FIXME KHTMLSettings
+#endif
// setFixedFont( fixedFont);
// setStandardFont( standardFont );
setURLCursor( KCursor::handCursor() );
@@ -215,7 +219,9 @@
void CDocBrowser::slotDocFontSize(int size){
fSize = size;
+#ifdef __GNUC__
#warning FIXME KHTMLSettings
+#endif
// KHTMLView* htmlview=view();
// htmlview->setDefaultFontBase( size );
// htmlview->parse();
@@ -233,7 +239,9 @@
void CDocBrowser::slotDocStandardFont(const QString& n){
standardFont = n;
+#ifdef __GNUC__
#warning FIXME KHTMLSettings
+#endif
// KHTMLView* htmlview=view();
// htmlview->setStandardFont( n );
// htmlview->parse();
@@ -244,7 +252,9 @@
void CDocBrowser::slotDocFixedFont(const QString& n){
fixedFont = n;
+#ifdef __GNUC__
#warning FIXME KHTMLSettings
+#endif
// KHTMLView* htmlview=view();
// htmlview->setFixedFont( n );
// htmlview->parse();
@@ -256,7 +266,9 @@
void CDocBrowser::slotDocColorsChanged( const QColor &bg, const QColor &text,
const QColor &link, const QColor &vlink, const bool uline, const bool force)
{
+#ifdef __GNUC__
#warning FIXME KHTMLSettings
+#endif
// KHTMLView* htmlview=view();
// htmlview->setForceDefault( force );
// htmlview->setDefaultBGColor( bg );
-
to unsubscribe from this list send an email to kdevelop-devel-request at kdevelop.org with the following body:
unsubscribe »your-email-address«
More information about the KDevelop-devel
mailing list