summaryrefslogtreecommitdiff
path: root/rsc/source/prj
diff options
context:
space:
mode:
authorNoel Grandin <noel@peralex.com>2014-06-25 14:57:44 +0200
committerNoel Grandin <noel@peralex.com>2014-07-11 14:12:25 +0200
commitdac4ca5f682fdd0c3eee7f7ee1d98c9b3c8b7ce4 (patch)
treef0f66445c3f396759c41d7e3294e728653dbfa88 /rsc/source/prj
parent28b6325901138a6267320902ec889fc434ddde91 (diff)
new loplugin: externalandnotdefined
Find "missing headers," where a function is declared directly in the .cxx (as extern) and not defined, and should arguably instead be declared in an include file. Change-Id: I6d83ee432b2ab0cd050aec2b27c3658d32ac02a2
Diffstat (limited to 'rsc/source/prj')
-rw-r--r--rsc/source/prj/gui.hxx3
-rw-r--r--rsc/source/prj/start.cxx6
2 files changed, 3 insertions, 6 deletions
diff --git a/rsc/source/prj/gui.hxx b/rsc/source/prj/gui.hxx
index 08a11e637834..7deab5b3b88e 100644
--- a/rsc/source/prj/gui.hxx
+++ b/rsc/source/prj/gui.hxx
@@ -24,6 +24,9 @@
int rsc2_main(int, char**);
+// Entry point declaration for modules rscpp and rsc2
+extern "C" int rscpp_main(int, char**);
+
#endif
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/rsc/source/prj/start.cxx b/rsc/source/prj/start.cxx
index 7c926f04d7a5..d42f0d8a58d1 100644
--- a/rsc/source/prj/start.cxx
+++ b/rsc/source/prj/start.cxx
@@ -41,12 +41,6 @@
#include <rtl/strbuf.hxx>
-// Entry point declaration for modules rscpp and rsc2
-extern "C"
-{
- int rscpp_main(int, char**);
-}
-
static bool CallPrePro( const OString& rInput,
const OString& rOutput, RscPtrPtr * pCmdLine,
bool bResponse )