Ticket #1 (closed defect: fixed)

Opened 4 years ago

Last modified 4 years ago

fail to compile using gcc 4.2.2

Reported by: razvan@… Owned by: mwhitworth
Priority: major Component: component1
Version: Keywords:
Cc:

Description

Using gcc 4.2.2 the compilation fails with the following error:

cc -Werror -Wall -nostdlib -ffreestanding -fno-omit-frame-pointer -fno-builtin -fPIC -I../libc/include -I../librtl -O2 -fno-stack-protector -c hash.c -o hash.o
cc1: warnings being treated as errors
hash.c: In function 'DlAddHashTable':
hash.c:86: warning: passing argument 1 of 'link_strdup' discards qualifiers from pointer target type

Attachments

Change History

Changed 4 years ago by mwhitworth

  • owner changed from somebody to mwhitworth
  • status changed from new to accepted

Indeed. I'll probably disable -Wall in the next release (since there's so many gccs and settings that people will compile for) and replace it with -Wextra.

Changed 4 years ago by mwhitworth

  • status changed from accepted to closed
  • resolution set to fixed

Fixed in  r153. Will be included in Whitix 0.03a.

Add/Change #1 (fail to compile using gcc 4.2.2)

Author


E-mail address and user name can be saved in the Preferences.


Action
as closed
Next status will be 'reopened'
 
Note: See TracTickets for help on using tickets.