Complete.Org: Mailing Lists: Archives: freeciv-dev: March 2006:
[Freeciv-Dev] (PR#16029) common/nation.c compile warning
Home

[Freeciv-Dev] (PR#16029) common/nation.c compile warning

[Top] [All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
Subject: [Freeciv-Dev] (PR#16029) common/nation.c compile warning
From: "Egor Vyscrebentsov" <evyscr@xxxxxxxxx>
Date: Sun, 26 Mar 2006 02:39:39 -0800
Reply-to: bugs@xxxxxxxxxxx

<URL: http://bugs.freeciv.org/Ticket/Display.html?id=16029 >

Good daytime!

svn trunk r11793

$ make
...
freeciv/common/nation.c: In function `add_new_nation_group':
freeciv/common/nation.c:351: warning: 'group' might be used
uninitialized in this function
make[4]: *** [nation.o] Error 1

and the code in nation.c:351 (add_new_nation_group) was not understood
by me:

  struct nation_group *group;

  if (strlen(name) >= ARRAY_SIZE(group->name)) {
    freelog(LOG_FATAL, "Too-long group name %s.", group->name);
    exit(EXIT_FAILURE);
  }

-- 
Thanks, evyscr





[Prev in Thread] Current Thread [Next in Thread]
  • [Freeciv-Dev] (PR#16029) common/nation.c compile warning, Egor Vyscrebentsov <=