This is the mail archive of the ecos-bugs@sourceware.org mailing list for the eCos project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug 1001344] Allow nc_test_slave for lwIP to compile for targetswith 128KiB RAM.


Please do not reply to this email. Use the web interface provided at:
http://bugs.ecos.sourceware.org/show_bug.cgi?id=1001344

--- Comment #26 from Ilija Kocho <ilijak@siva.com.mk> 2012-05-17 18:03:56 BST ---
(In reply to comment #25)
> (In reply to comment #24)
> > 
> > In the case of the addition of CYGBLD_ATTRIB_UNUSED, I think it should be
> > CYGBLD_ATTRIB_USED, otherwise the calculation may be thrown away which defeats
> > the purpose.
> 
> To be clear, assuming you agree with that change, then please go ahead and
> commit.

CYGBLD_ATTRIB_USED won't suppress the warning:

...
/home/vae/Proekti/ecos/repo/cvs/current/ecos_kin/packages/net/lwip_tcpip/current/tests/nc_test_slave.c:
In function âdo_some_random_computationâ:
/home/vae/Proekti/ecos/repo/cvs/current/ecos_kin/packages/net/lwip_tcpip/current/tests/nc_test_slave.c:681:5:
warning: âusedâ attribute ignored [-Wattributes]
/home/vae/Proekti/ecos/repo/cvs/current/ecos_kin/packages/net/lwip_tcpip/current/tests/nc_test_slave.c:681:21:
warning: variable âxâ set but not used [-Wunused-but-set-variable]
...

CYGBLD_ATTRIB_UNUSED, contrary to what it's name implies, will keep the
variable. Ref: Bug 1001520

-- 
Configure bugmail: http://bugs.ecos.sourceware.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]