Permalink
Browse files

Fix a few warnings

  • Loading branch information...
nickg committed Aug 24, 2012
1 parent ad27d7d commit 2118dcdf2e759bf2bfaed35a2f97a3e0ccbe0d26
Showing with 4 additions and 2 deletions.
  1. +2 −2 src/link.c
  2. +2 −0 src/util.c
View
@@ -186,7 +186,7 @@ void link_bc(tree_t top)
if (opt_en) {
if (mkstemp(tmp) < 0)
fatal_errno("mkstemp");
- link_arg_f(tmp);
+ link_arg_f("%s", tmp);
}
else
link_output(top, "bc");
@@ -206,7 +206,7 @@ void link_bc(tree_t top)
link_arg_f("-std-compile-opts");
link_arg_f("-o");
link_output(top, "bc");
- link_arg_f(tmp);
+ link_arg_f("%s", tmp);
link_exec();
link_args_end();
View
@@ -493,6 +493,7 @@ static bool is_debugger_running(void)
#endif
}
+#ifdef __linux
static void gdb_sighandler(int sig, siginfo_t *info)
{
char exe[256];
@@ -516,6 +517,7 @@ static void gdb_sighandler(int sig, siginfo_t *info)
signal(sig, SIG_DFL);
}
}
+#endif // __linux
void register_trace_signal_handlers(void)
{

0 comments on commit 2118dcd

Please sign in to comment.