Skip to content

Commit

Permalink
Added missing static qualifier, and inline hint, to internal functions
Browse files Browse the repository at this point in the history
g++ 4.4.5 with -Winline says that only make_error is not inlined since calls to it
are unlikely.



git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@1099030 13f79535-47bb-0310-9956-ffa450edef68
  • Loading branch information
fdmanana committed May 3, 2011
1 parent ac67408 commit f73d95f
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/snappy/snappy_nif.cc
Expand Up @@ -107,7 +107,7 @@ SnappyNifSink::getBin()
BEGIN_C


ERL_NIF_TERM
static inline ERL_NIF_TERM
make_atom(ErlNifEnv* env, const char* name)
{
ERL_NIF_TERM ret;
Expand All @@ -118,15 +118,15 @@ make_atom(ErlNifEnv* env, const char* name)
}


ERL_NIF_TERM
static inline ERL_NIF_TERM
make_ok(ErlNifEnv* env, ERL_NIF_TERM mesg)
{
ERL_NIF_TERM ok = make_atom(env, "ok");
return enif_make_tuple2(env, ok, mesg);
}


ERL_NIF_TERM
static inline ERL_NIF_TERM
make_error(ErlNifEnv* env, const char* mesg)
{
ERL_NIF_TERM error = make_atom(env, "error");
Expand Down

0 comments on commit f73d95f

Please sign in to comment.