summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Drake <tlsa@netsurf-browser.org>2014-05-26 10:51:46 +0100
committerMichael Drake <tlsa@netsurf-browser.org>2014-05-26 10:51:46 +0100
commit8b9f2e7ee64f0eccb825ebc06a23abf322e3bb6e (patch)
tree06d912454d702754228e5a6a65eea899270f538f
parentcd897798319e1a02f845a5ecadf8a43761221a13 (diff)
downloadnetsurf-8b9f2e7ee64f0eccb825ebc06a23abf322e3bb6e.tar.gz
netsurf-8b9f2e7ee64f0eccb825ebc06a23abf322e3bb6e.tar.bz2
Fix warnings about redundant statements when building without RO types.
-rw-r--r--riscos/content-handlers/artworks.h5
-rw-r--r--riscos/content-handlers/draw.h5
-rw-r--r--riscos/content-handlers/sprite.h5
3 files changed, 12 insertions, 3 deletions
diff --git a/riscos/content-handlers/artworks.h b/riscos/content-handlers/artworks.h
index 20f6168b7..67832cc54 100644
--- a/riscos/content-handlers/artworks.h
+++ b/riscos/content-handlers/artworks.h
@@ -32,7 +32,10 @@ nserror artworks_init(void);
#else
-#define artworks_init() NSERROR_OK
+static inline nserror artworks_init(void)
+{
+ return NSERROR_OK;
+}
#endif
diff --git a/riscos/content-handlers/draw.h b/riscos/content-handlers/draw.h
index 76fcbc8dc..9f5baf6dc 100644
--- a/riscos/content-handlers/draw.h
+++ b/riscos/content-handlers/draw.h
@@ -32,7 +32,10 @@ nserror draw_init(void);
#else
-#define draw_init() NSERROR_OK
+static inline nserror draw_init(void)
+{
+ return NSERROR_OK;
+}
#endif /* WITH_DRAW */
diff --git a/riscos/content-handlers/sprite.h b/riscos/content-handlers/sprite.h
index 2219e0679..ab6d312a5 100644
--- a/riscos/content-handlers/sprite.h
+++ b/riscos/content-handlers/sprite.h
@@ -32,7 +32,10 @@ nserror sprite_init(void);
#else
-#define sprite_init() NSERROR_OK
+static inline nserror sprite_init(void)
+{
+ return NSERROR_OK;
+}
#endif