summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorAdam Reichold <adam.reichold@t-online.de>2018-10-10 07:44:58 +0200
committerAdam Reichold <adam.reichold@t-online.de>2018-10-10 07:46:44 +0200
commit7f20ace4579f69fc3bd0f975fadec37134c3782c (patch)
tree28c4e2c3ee913d7aa8ccb151a50c17ef2f658530 /test
parente1501603b6f043a40586ff0babf34980a6f03b15 (diff)
Remove usage of pragmas interface and implementation
GCC recommends not using them for a long time and its documentation says: > These #pragmas have been superceded as of GCC 2.7.2 by COMDAT support > and the “key method” heuristic mentioned in Vague Linkage. > Using them can actually cause your program to grow due to > unnecessary out-of-line copies of inline functions. Also nobody seems to set USE_GCC_PRAGMAS and sometimes they were guarded by just __GNUC__ which upsets Clang.
Diffstat (limited to 'test')
-rw-r--r--test/gtk-test.cc4
-rw-r--r--test/pdf-inspector.cc4
2 files changed, 0 insertions, 8 deletions
diff --git a/test/gtk-test.cc b/test/gtk-test.cc
index ec8a9eb6..44136456 100644
--- a/test/gtk-test.cc
+++ b/test/gtk-test.cc
@@ -1,9 +1,5 @@
#include <config.h>
-#ifdef USE_GCC_PRAGMAS
-#pragma implementation
-#endif
-
#include <goo/gmem.h>
#include <splash/SplashTypes.h>
#include <splash/SplashBitmap.h>
diff --git a/test/pdf-inspector.cc b/test/pdf-inspector.cc
index bbcd1276..1314858e 100644
--- a/test/pdf-inspector.cc
+++ b/test/pdf-inspector.cc
@@ -9,10 +9,6 @@
#include <config.h>
-#ifdef USE_GCC_PRAGMAS
-#pragma implementation
-#endif
-
#include <goo/gmem.h>
#include <goo/GooTimer.h>
#include <splash/SplashTypes.h>