Move backend names into src/benchmark.c
It's causing unreferenced-variable warnings, and isn't referenced anywhere aside from benchmark.c. If client code is likely to reference it, perhaps move it into another header, so people who include hammer.h don't have to refer to it to have warning-free code.
This commit is contained in:
parent
9faa4cf675
commit
f2434d5b12
2 changed files with 8 additions and 8 deletions
|
|
@ -14,6 +14,14 @@
|
|||
#include <sys/resource.h>
|
||||
#endif
|
||||
|
||||
static const char* HParserBackendNames[] = {
|
||||
"Packrat",
|
||||
"Regular",
|
||||
"LL(k)",
|
||||
"LALR",
|
||||
"GLR"
|
||||
};
|
||||
|
||||
void h_benchmark_clock_gettime(struct timespec *ts) {
|
||||
if (ts == NULL)
|
||||
return;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue