Skip to content

Commit 924a179

Browse files
author
Denys Vlasenko
committed
build system: do not generate MAX_APPLET_NAME_LEN (unused)
Signed-off-by: Denys Vlasenko <[email protected]>
1 parent 26ad256 commit 924a179

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

Diff for: applets/applet_tables.c

+5-5
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ int main(int argc, char **argv)
5353
{
5454
int i;
5555
int ofs;
56-
unsigned MAX_APPLET_NAME_LEN = 1;
56+
// unsigned MAX_APPLET_NAME_LEN = 1;
5757

5858
qsort(applets, NUM_APPLETS, sizeof(applets[0]), cmp_name);
5959

@@ -89,8 +89,8 @@ int main(int argc, char **argv)
8989
printf("const char applet_names[] ALIGN1 = \"\"\n");
9090
for (i = 0; i < NUM_APPLETS; i++) {
9191
printf("\"%s\" \"\\0\"\n", applets[i].name);
92-
if (MAX_APPLET_NAME_LEN < strlen(applets[i].name))
93-
MAX_APPLET_NAME_LEN = strlen(applets[i].name);
92+
// if (MAX_APPLET_NAME_LEN < strlen(applets[i].name))
93+
// MAX_APPLET_NAME_LEN = strlen(applets[i].name);
9494
}
9595
printf(";\n\n");
9696

@@ -130,8 +130,8 @@ int main(int argc, char **argv)
130130
printf("};\n");
131131
#endif
132132
//printf("#endif /* SKIP_definitions */\n");
133-
printf("\n");
134-
printf("#define MAX_APPLET_NAME_LEN %u\n", MAX_APPLET_NAME_LEN);
133+
// printf("\n");
134+
// printf("#define MAX_APPLET_NAME_LEN %u\n", MAX_APPLET_NAME_LEN);
135135

136136
if (argv[2]) {
137137
char line_old[80];

0 commit comments

Comments
 (0)