|
|
Choosing A Webhost: |
Re: Problems with -Wall flag: msg#00013search.snowball
On Tue, Feb 24, 2004 at 04:19:42PM -0700, Neal Richter wrote: > compiler/space.c ---- Fixes "int format, pointer arg" warning > Line 58: if (DEBUG) printf("<-- %d\n", (unsigned int)p); > Line 69: if (DEBUG) printf("--> %d\n", (unsigned int)p); > Line 75: if (DEBUG) printf("%d --> %d\n", (unsigned int)p, (unsigned int)q); Using %p is a better fix for this than adding casts. > I also get these errors in the C code generated: Coding standards are for humans. Insisting machine-generated code conforms to coding standards is foolish - the fact that Snowball compiles via C is really just an implementation detail (like the fact GCC compiles to machine code via assembly language - does your organisation insist that the assembly code GCC generates meets your coding standards?) Cheers, Olly
|
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| Previous by Date: | Problems with -Wall flag, Neal Richter |
|---|---|
| Next by Date: | Re: Problems with -Wall flag, Neal Richter |
| Previous by Thread: | Problems with -Wall flag, Neal Richter |
| Next by Thread: | Re: Problems with -Wall flag, Neal Richter |
| Indexes: | [Date] [Thread] [Top] [All Lists] |
Free MagazinesCisco NewsReceive a free quarterly e-newsletter with exclusive articles on how Cisco IT uses its own products and solutions to enable the business. subscribe Systems Management News, the newspaper for IT systems administration and data center managers! Each issue of Systems Management News is chock-full of news and analysis to help you understand what's happening in your field. subscribe The Enterprise Newsweekly eWeek is the essential technology information source for builders of e-business. subscribe Oracle Magazine Oracle Magazine contains technology strategy articles, sample code, tips, Oracle and partner news, how to articles for developers and DBAs, and more. Oracle (NASDAQ: ORCL) is the world's largest enterprise software company. subscribe Total Telecom Total Telecom is "The Economist of the communications industry". subscribe |