Patch: suppress duplicate Fl_Printer::class_id

James C <[email protected]>
Newsgroups gmane.comp.web.dillo.devel
Message-ID <CACZ9Q6hqjeUWvD_wKh6gGtpifTRg5oeMHh0+VKfq__Qyf7hnFw@mail.gmail.com>
Hello All,

Building commit 317f010 (two days ago) of dillo, I got a duplicate
symbol on OSX 10.6.8 with gcc 4.2.1.  Here is the diff that suppresses
it.

----------------
$ hg diff
diff -r c09473fb7311 dw/fltkplatform.cc
--- a/dw/fltkplatform.cc	Sat Sep 13 09:46:28 2014 +0000
+++ b/dw/fltkplatform.cc	Sat Sep 13 23:49:26 2014 +1200
@@ -37,10 +37,10 @@
  * any need for currently. This stub prevents that. */
 class FL_EXPORT Fl_Printer : public Fl_Paged_Device {
 public:
-   static const char *class_id;
+//   static const char *class_id;
    Fl_Printer(void) {};
 };
-const char *Fl_Printer::class_id = "Fl_Printer";
+//const char *Fl_Printer::class_id = "Fl_Printer";

 /* Tooltips */
 static Fl_Menu_Window *tt_window = NULL;
---------------

I have no idea what it will turn out that I've broken.

If having this as a pull request will help, then I will try to work out how.

Regards,
James.
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.