Complete.Org: Mailing Lists: Archives: freeciv-dev: February 2002:
[Freeciv-Dev] [Patch] Waste of string storage
Home

[Freeciv-Dev] [Patch] Waste of string storage

[Top] [All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
To: freeciv development list <freeciv-dev@xxxxxxxxxxx>
Subject: [Freeciv-Dev] [Patch] Waste of string storage
From: Raimar Falke <hawk@xxxxxxxxxxxxxxxxxxxxxxx>
Date: Tue, 5 Feb 2002 20:22:01 +0100
Reply-to: rf13@xxxxxxxxxxxxxxxxxxxxxx

The attached patch fixes these error messages:

server/report.c: (in function value_units)
server/report.c:578:25: String literal with 2 characters is assigned to char
                           [64] (possible waste of storage): "??"
  A string literal is assigned to a char array that smaller than the string
  literal needs. (Use -stringliteralsmaller to inhibit warning)
server/report.c: (in function report_demographics)
server/report.c:908:23: String literal with 0 characters is assigned to char
                           [4096] (possible waste of storage): ""

        Raimar

-- 
 email: rf13@xxxxxxxxxxxxxxxxx
 "USENET is *not* the non-clickable part of WWW!"

Attachment: stringliteralsmaller1.diff
Description: Text document


[Prev in Thread] Current Thread [Next in Thread]
  • [Freeciv-Dev] [Patch] Waste of string storage, Raimar Falke <=