summaryrefslogtreecommitdiffhomepage
path: root/ir/be/platform.c
diff options
context:
space:
mode:
authorChristoph Erhardt <erhardt@cs.fau.de>2017-09-01 14:05:14 +0200
committerAndreas Fried <andreas.fried@kit.edu>2017-09-01 16:05:23 +0200
commitb4a0a4e38a0d8652e030b91ef0ce3a6452656a50 (patch)
tree09b4bdf255fa330d3bf92248976c9df3bcfe1927 /ir/be/platform.c
parent3e31b66e30978aeca8d7e542880d307bed8adae7 (diff)
Suppress uninitialised-variable warning
Diffstat (limited to 'ir/be/platform.c')
-rw-r--r--ir/be/platform.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/ir/be/platform.c b/ir/be/platform.c
index b7f4586..3ca5bf4 100644
--- a/ir/be/platform.c
+++ b/ir/be/platform.c
@@ -270,10 +270,8 @@ BSD:
void ir_platform_init(void)
{
/* Decide PIC style */
- be_pic_style_t style;
- if (!option_pic) {
- style = BE_PIC_NONE;
- } else {
+ be_pic_style_t style = BE_PIC_NONE;
+ if (option_pic) {
ppdef("__PIC__", "2");
ppdef("__pic__", "2");
switch (ir_platform.object_format) {