diff options
author | Ola Bini <ola@olabini.se> | 2015-10-05 13:41:00 -0500 |
---|---|---|
committer | Ola Bini <ola@olabini.se> | 2015-10-05 13:41:00 -0500 |
commit | be7ef94a7dbfa67d03ca175789590efefca7b3d1 (patch) | |
tree | f135e49efaa08a0f82eb0310493fee7f737e1982 /src | |
parent | 5b43ecf2b3130781b6020615ba7a5b3ddc5509ce (diff) | |
download | tor-be7ef94a7dbfa67d03ca175789590efefca7b3d1.tar.gz tor-be7ef94a7dbfa67d03ca175789590efefca7b3d1.zip |
Fix compiling under gcc warnings to errors
Diffstat (limited to 'src')
-rw-r--r-- | src/test/log_test_helpers.c | 3 | ||||
-rw-r--r-- | src/test/log_test_helpers.h | 2 |
2 files changed, 3 insertions, 2 deletions
diff --git a/src/test/log_test_helpers.c b/src/test/log_test_helpers.c index 42778d4642..0efa3ceac3 100644 --- a/src/test/log_test_helpers.c +++ b/src/test/log_test_helpers.c @@ -33,7 +33,7 @@ mock_clean_saved_logs(void) saved_logs = NULL; } -char * +const char * mock_saved_log_at(int ix) { int saved_log_count = mock_saved_log_number(); @@ -76,6 +76,7 @@ mock_saved_logs(void) void mock_saving_logv(int severity, log_domain_mask_t domain, const char *funcname, const char *suffix, const char *format, va_list ap) { + (void)domain; char *buf = tor_malloc_zero(10240); int n; n = tor_vsnprintf(buf,10240,format,ap); diff --git a/src/test/log_test_helpers.h b/src/test/log_test_helpers.h index 789bfe4143..debc167d59 100644 --- a/src/test/log_test_helpers.h +++ b/src/test/log_test_helpers.h @@ -20,7 +20,7 @@ void mock_clean_saved_logs(void); const smartlist_t *mock_saved_logs(void); int setup_capture_of_logs(int new_level); void teardown_capture_of_logs(int prev); -char *mock_saved_log_at(int ix); +const char *mock_saved_log_at(int ix); int mock_saved_severity_at(int ix); int mock_saved_log_number(void); |