Files
libgit2/tests/mailmap/mailmap_testdata.h
Patrick Steinhardt 2521e11ce2 tests: mailmap: avoid definition of unused static variables
The mailmap testdata header contains a set of static variable
definitions. As these variables aren't used in all places where they are
used, they trigger the unused-const-variable warnings. As we have
currently disabled those warnings explicitly, they are never triggered,
but we intend to enable them.

Avoid the issue by only keeping variable definitions that are actually
used in all locations. Move the others to where they are used.
2018-11-28 15:22:27 +01:00

22 lines
884 B
C

#include "mailmap.h"
typedef struct mailmap_entry {
const char *real_name;
const char *real_email;
const char *replace_name;
const char *replace_email;
} mailmap_entry;
static const mailmap_entry resolved[] = {
{ "Brad", "cto@company.xx", "Brad", "cto@coompany.xx" },
{ "Brad L", "cto@company.xx", "Brad L", "cto@coompany.xx" },
{ "Some Dude", "some@dude.xx", "nick1", "bugs@company.xx" },
{ "Other Author", "other@author.xx", "nick2", "bugs@company.xx" },
{ "nick3", "bugs@company.xx", "nick3", "bugs@company.xx" },
{ "Other Author", "other@author.xx", "Some Garbage", "nick2@company.xx" },
{ "Phil Hill", "phil@company.xx", "unknown", "phil@company.xx" },
{ "Joseph", "joseph@company.xx", "Joseph", "bugs@company.xx" },
{ "Santa Claus", "santa.claus@northpole.xx", "Clause", "me@company.xx" },
{ "Charles", "charles@charles.xx", "Charles", "charles@charles.xx" }
};