Skip to content

Commit

Permalink
Merge pull request #1184 from grondo/va_start-avoid-enum
Browse files Browse the repository at this point in the history
build: fix newer compiler warnings about enum passed to va_start
  • Loading branch information
garlick authored Sep 8, 2017
2 parents 9c860d0 + d206431 commit ea1f316
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 9 deletions.
4 changes: 2 additions & 2 deletions src/common/liboptparse/optparse.c
Original file line number Diff line number Diff line change
Expand Up @@ -995,7 +995,7 @@ optparse_err_t optparse_add_doc (optparse_t *p, const char *doc, int group)
return optparse_add_option (p, &o);
}

optparse_err_t optparse_set (optparse_t *p, optparse_item_t item, ...)
optparse_err_t optparse_set (optparse_t *p, int item, ...)
{
optparse_err_t e = OPTPARSE_SUCCESS;
va_list vargs;
Expand Down Expand Up @@ -1074,7 +1074,7 @@ static void * lookup_recursive (optparse_t *p, const char *key)
}


optparse_err_t optparse_get (optparse_t *p, optparse_item_t item, ...)
optparse_err_t optparse_get (optparse_t *p, int item, ...)
{
optparse_err_t e = OPTPARSE_SUCCESS;
va_list vargs;
Expand Down
4 changes: 2 additions & 2 deletions src/common/liboptparse/optparse.h
Original file line number Diff line number Diff line change
Expand Up @@ -243,9 +243,9 @@ optparse_err_t optparse_add_option_table (optparse_t *p,
*/
optparse_err_t optparse_add_doc (optparse_t *p, const char *doc, int group);

optparse_err_t optparse_set (optparse_t *p, optparse_item_t item, ...);
optparse_err_t optparse_set (optparse_t *p, int item, ...);

optparse_err_t optparse_get (optparse_t *p, optparse_item_t item, ...);
optparse_err_t optparse_get (optparse_t *p, int item, ...);

/* Set and get arbitrary ancillary data associated with an optparse
* object. optparse_get_data () returns NULL if data not found.
Expand Down
2 changes: 1 addition & 1 deletion src/common/libsubprocess/subprocess.c
Original file line number Diff line number Diff line change
Expand Up @@ -1082,7 +1082,7 @@ subprocess_manager_reap_all (struct subprocess_manager *sm)
}

int
subprocess_manager_set (struct subprocess_manager *sm, sm_item_t item, ...)
subprocess_manager_set (struct subprocess_manager *sm, int item, ...)
{
va_list ap;

Expand Down
3 changes: 1 addition & 2 deletions src/common/libsubprocess/subprocess.h
Original file line number Diff line number Diff line change
Expand Up @@ -66,8 +66,7 @@ struct subprocess_manager * subprocess_manager_create (void);
/*
* Set value for item [item] in subprocess manager [sm]
*/
int subprocess_manager_set (struct subprocess_manager *sm,
sm_item_t item, ...);
int subprocess_manager_set (struct subprocess_manager *sm, int item, ...);

/*
* Free memory associated with a subprocess manager object:
Expand Down
4 changes: 2 additions & 2 deletions src/test/travis-dep-builder.sh
Original file line number Diff line number Diff line change
Expand Up @@ -31,13 +31,13 @@ https://github.com/danmar/cppcheck.git \
https://github.com/LLNL/Caliper.git"

declare -A checkout_sha1=(\
["libfaketime"]="b68f2820c4091075fbc205965ec6976f6d241aaa" \
["libfaketime"]="5d41d41da8f67e396f630280b180cdfb8e56abbc" \
["cppcheck"]="7466a49b216d4ba5e25b48381d85a8c3b2d3a228" \
["Caliper"]="be6b488bedb75012e60d3062f8cd2749032985fe" \
)

declare -A extra_make_opts=(\
["libfaketime"]="LIBDIRNAME=/lib"
["libfaketime"]="LIBDIRNAME=/lib CC=gcc"
["cppcheck"]="CFGDIR=/${prefix}/etc/cppcheck CXX=g++ CC=gcc"
)

Expand Down

0 comments on commit ea1f316

Please sign in to comment.