clang compiler warnings: Remove large chunks of unused code from extconf

This patch fixes a warning caught by clang, in which it detected that large
chunks of extconf were unused. Frankly, I wish we could pretend that all of
extconf was unused, but alas, that is not yet the case.

A few extraneous functions in the parking tests were removed as well, for
the same reason.

Review: https://reviewboard.asterisk.org/r/4553

ASTERISK-24917
Reported by: dkdegroot
patches:
  rb4553.patch submitted by dkdegroot (License 6600)
........

Merged revisions 434093 from http://svn.asterisk.org/svn/asterisk/branches/11
........

Merged revisions 434097 from http://svn.asterisk.org/svn/asterisk/branches/13


git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@434099 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
Matthew Jordan
2015-04-06 18:18:32 +00:00
parent e309a91e2d
commit 0543879228
2 changed files with 3 additions and 329 deletions

View File

@@ -137,15 +137,6 @@ static void do_sleep(struct timespec *to_sleep)
}
}
static int fake_fixup(struct ast_channel *clonechan, struct ast_channel *original)
{
return 0;
}
static const struct ast_channel_tech fake_tech = {
.fixup = fake_fixup, /* silence warning from masquerade... though those shouldn't be happening now */
};
#define TEST_LOT_NAME "unit_tests_res_parking_test_lot"
static struct parking_lot *generate_test_parking_lot(const char *name, int low_space, int high_space, const char *park_exten, const char *park_context, struct ast_test *test)