Opened 3 years ago

Closed 3 years ago

Last modified 2 years ago

#12746 closed bug (fixed)

[Patch] netresolv: fix gcc6 build

Reported by: mt Owned by: axeld
Priority: normal Milestone: Unscheduled
Component: Kits/Network Kit Version: R1/Development
Keywords: Cc:
Blocked By: Blocking:
Has a Patch: yes Platform: All

Description

Gcc6 warns some '-Werror=unused-const-variable=', but I don't know if these variables can be really removed. so marked as unused by attribute.

Attachments (2)

0004-netresolv-fix-gcc6-build.patch (11.0 KB) - added by mt 3 years ago.
netresolv_buildlog.txt (82.1 KB) - added by mt 3 years ago.

Download all attachments as: .zip

Change History (8)

Changed 3 years ago by mt

comment:1 Changed 3 years ago by mt

Has a Patch: set

Changed 3 years ago by mt

Attachment: netresolv_buildlog.txt added

comment:2 Changed 3 years ago by pulkomandy

The "rcsid" could be commented out, it is useful to know which version of *BSD we got the files from, but not of any use to the compiler.

The others can be completely removed, if the compiler says so.

comment:3 in reply to:  2 Changed 3 years ago by mt

Replying to pulkomandy:

The "rcsid" could be commented out, it is useful to know which version of *BSD we got the files from, but not of any use to the compiler.

The others can be completely removed, if the compiler says so.

Hi, pulkomandy. All rcsids are between #if and #endif, so can I use && !defined(__HAIKU__) to comment out them?

Last edited 3 years ago by pulkomandy (previous) (diff)

comment:4 in reply to:  2 Changed 3 years ago by korli

Replying to pulkomandy:

The "rcsid" could be commented out, it is useful to know which version of *BSD we got the files from, but not of any use to the compiler.

There is git history for that.

comment:5 Changed 3 years ago by pulkomandy

Resolution: fixed
Status: newclosed

Fixed in hrev50503.

comment:6 Changed 2 years ago by mt

rcsid[] in dst/support.c is not guarded with LINT, so we could comment out it for gcc6 build.

http://cgit.haiku-os.org/haiku/tree/src/kits/network/netresolv/dst/support.c#n1

Note: See TracTickets for help on using tickets.