mirror of
https://github.com/1dot13/source.git
synced 2026-07-29 13:52:17 +02:00
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:
committed by
majcosta
co-authored by
Claude Opus 4.8
parent
ee01103b67
commit
e1ae72a5f6
@@ -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];
|
||||
|
||||
Reference in New Issue
Block a user