remove an array declared with neither a size nor an initializer

char team_names[][30];//hayden need client_names with AI

This is not a declaration of anything. C would treat it as a tentative
definition and settle on one element; C++ requires a size or an initializer,
and clang says so. MSVC accepts it quietly.

Nothing in the tree reads or writes team_names, and the comment reads as a
note to self rather than a feature. Rather than guess a size for an array
nobody uses, it goes.

Verification:

    grep -rn 'team_names' --include=*.cpp --include=*.h .   # nothing
    ninja -C build parse         # client.cpp clean
    ninja -C build -k 0          # Release, four applications, green
    ninja -C build-debug -k 0    # Debug, four applications, green

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
Marco Antonio J. Costa
2026-07-23 19:29:55 -03:00
committed by majcosta
co-authored by Claude Opus 4.8
parent ee01103b67
commit e1ae72a5f6
-2
View File
@@ -553,8 +553,6 @@ bullets_table bTable[11][50];
char client_names[4][30];
char team_names[][30];//hayden need client_names with AI
// OJW - 20081204
int client_ready[4];
int client_edges[5];