Bug 110897
Summary: | bad source code | ||
---|---|---|---|
Product: | [Fedora] Fedora | Reporter: | d.binderman |
Component: | ncpfs | Assignee: | Karsten Hopp <karsten> |
Status: | CLOSED RAWHIDE | QA Contact: | David Lawrence <dkl> |
Severity: | medium | Docs Contact: | |
Priority: | medium | ||
Version: | 1 | CC: | d.binderman |
Target Milestone: | --- | ||
Target Release: | --- | ||
Hardware: | All | ||
OS: | Linux | ||
Whiteboard: | |||
Fixed In Version: | Doc Type: | Bug Fix | |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2004-02-02 10:58:26 UTC | Type: | --- |
Regression: | --- | Mount Type: | --- |
Documentation: | --- | CRM: | |
Verified Versions: | Category: | --- | |
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
Cloudforms Team: | --- | Target Upstream Version: | |
Embargoed: |
Description
d.binderman
2003-11-25 12:24:31 UTC
Fix for (2) is available at bk://ncpfs.bkbits.net/ncpfs. (1) is won't fix for me (ncpfs upstream maintainer), unless gcc is going to not support nested functions. get_argument references couple of variables local to ncp_initialize_2 function, and I see no reason for jumping through hoops just to accomodate ISO C.
>I see no reason for jumping through hoops just to accomodate ISO C.
1. Using ISO C means you can get the benefits of using a different,
better, compiler on your code. This could mean better warnings,
or it could mean better code generation.
2. There are lots of software development tools, like Insure++
and various code metrics tools, which read & understand ISO C.
By using nested functions, you prevent their use.
3. By using ISO C, you make it easier for the product to be ported
onto new machines.
I agree with Petr here. The first part needs to be fixed upstream, this isn't the right place to report such bugs. All compilers supported by Red Hat compile this package without problems. The second part is fixed in ncpfs-2_2_3-3 (Fedora development) |