Skip to content

Commit

Permalink
handle: Move #pragma out of functions.
Browse files Browse the repository at this point in the history
RHEL 6 gcc did not support #pragma within functions.
  • Loading branch information
rwmjones committed Aug 13, 2015
1 parent 06e92bf commit 437cb7b
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/handle.c
Original file line number Diff line number Diff line change
Expand Up @@ -392,14 +392,14 @@ guestfs_close (guestfs_h *g)
free (g);
}

#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Wpointer-to-int-cast"
int64_t
guestfs_impl_c_pointer (guestfs_h *g)
{
#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Wpointer-to-int-cast"
return (int64_t) g;
#pragma GCC diagnostic pop
}
#pragma GCC diagnostic pop

int
guestfs_impl_shutdown (guestfs_h *g)
Expand Down

0 comments on commit 437cb7b

Please sign in to comment.