r24674 by jghali - Fix some compiler warnings

scribus-commit scribus-commit at lists.scribus.net
Thu Jun 17 19:53:35 UTC 2021


Author: jghali
Date: Thu Jun 17 19:53:34 2021
New Revision: 24674

URL: http://scribus.net/websvn/listing.php?repname=Scribus&sc=1&rev=24674
Log:
Fix some compiler warnings

Modified:
    trunk/Scribus/scribus/plugins/scriptplugin/objpdffile.cpp
    trunk/Scribus/scribus/plugins/scriptplugin/objprinter.cpp

Modified: trunk/Scribus/scribus/plugins/scriptplugin/objpdffile.cpp
URL: http://scribus.net/websvn/diff.php?repname=Scribus&rev=24674&path=/trunk/Scribus/scribus/plugins/scriptplugin/objpdffile.cpp
==============================================================================
--- trunk/Scribus/scribus/plugins/scriptplugin/objpdffile.cpp	(original)
+++ trunk/Scribus/scribus/plugins/scriptplugin/objpdffile.cpp	Thu Jun 17 19:53:34 2021
@@ -1750,3 +1750,13 @@
 	//    struct _typeobject *tp_next;
 #endif
 };
+
+/*! HACK: this removes "warning: 'blah' defined but not used" compiler warnings
+with header files structure untouched (docstrings are kept near declarations)
+PV */
+void objpdffilewarnings()
+{
+	QStringList s;
+	s << pdffile__doc__
+	  << pdffile_save__doc__;
+}

Modified: trunk/Scribus/scribus/plugins/scriptplugin/objprinter.cpp
URL: http://scribus.net/websvn/diff.php?repname=Scribus&rev=24674&path=/trunk/Scribus/scribus/plugins/scriptplugin/objprinter.cpp
==============================================================================
--- trunk/Scribus/scribus/plugins/scriptplugin/objprinter.cpp	(original)
+++ trunk/Scribus/scribus/plugins/scriptplugin/objprinter.cpp	Thu Jun 17 19:53:34 2021
@@ -588,3 +588,13 @@
 	//    struct _typeobject *tp_next;
 #endif
 };
+
+/*! HACK: this removes "warning: 'blah' defined but not used" compiler warnings
+with header files structure untouched (docstrings are kept near declarations)
+PV */
+void objprinterwarnings()
+{
+	QStringList s;
+	s << printer__doc__
+	  << printer_printnow__doc__;
+}




More information about the scribus-commit mailing list