Your message dated Sat, 18 Jun 2016 00:52:54 +0200
with message-id <[email protected]>
and subject line closing bugs reported against ancient GCC versions
has caused the Debian Bug report #504684,
regarding [Fixed in 4.4] gcc-4.3: __attribute__((const)) breaks 
__attribute__((warn_unused_result))
to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact [email protected]
immediately.)


-- 
504684: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=504684
Debian Bug Tracking System
Contact [email protected] with problems
--- Begin Message ---
Package: gcc-4.3
Version: 4.3.2-1
Severity: normal

Making a function __attribute__((const)) makes the warnings from
__attribute__((warn_unused_result)) go away.

I've attached a minimal testcase.  Results:

$ echo == USE_CONST == ; gcc -DUSE_CONST -c test.c -o /dev/null ; echo == 
\!USE_CONST == ; gcc -c test.c -o /dev/null
== USE_CONST ==
== !USE_CONST ==
test.c: In function ‘update_rocket_state’:
test.c:14: warning: ignoring return value of ‘func’, declared with attribute 
warn_unused_result

- Josh Triplett and Jamey Sharp

-- System Information:
Debian Release: lenny/sid
  APT prefers unstable
  APT policy: (500, 'unstable'), (1, 'experimental')
Architecture: amd64 (x86_64)

Kernel: Linux 2.6.27-1-amd64 (SMP w/2 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash

Versions of packages gcc-4.3 depends on:
ii  binutils            2.18.1~cvs20080103-7 The GNU assembler, linker and bina
ii  cpp-4.3             4.3.2-1              The GNU C preprocessor
ii  gcc-4.3-base        4.3.2-1              The GNU Compiler Collection (base 
ii  libc6               2.7-16               GNU C Library: Shared libraries
ii  libgcc1             1:4.3.2-1            GCC support library
ii  libgomp1            4.3.2-1              GCC OpenMP (GOMP) support library

Versions of packages gcc-4.3 recommends:
ii  libc6-dev                     2.7-16     GNU C Library: Development Librari

Versions of packages gcc-4.3 suggests:
pn  gcc-4.3-doc                   <none>     (no description available)
pn  gcc-4.3-locales               <none>     (no description available)
ii  gcc-4.3-multilib              4.3.2-1    The GNU C compiler (multilib files
pn  libgcc1-dbg                   <none>     (no description available)
pn  libgomp1-dbg                  <none>     (no description available)
pn  libmudflap0-4.3-dev           <none>     (no description available)
pn  libmudflap0-dbg               <none>     (no description available)

-- no debconf information
#ifdef USE_CONST
int func(void) __attribute__((const)) __attribute__((warn_unused_result));
#else
int func(void) __attribute__((warn_unused_result));
#endif

void update_rocket_state(void)
{
 func();
}

--- End Message ---
--- Begin Message ---
This bug has been reported against an ancient version of
gpc (4.1), gcc/g++/gfortran (4.3), or gcj/gij/gobjc (4.4), that was last
released with Debian 6.0 (squeeze). But even squeeze-lts has now reached
end-of-life and is no longer supported.
The bug is assumed to be fixed (or no longer relevant) in newer GCC
releases and therefore I'm closing this report now. If the problem is
still reproducible in the currently supported versions (gcc-5, gcc-6 or
corresponding g++/gcj), feel free to provide more information, reopen
and reassign this bug report.


Andreas

--- End Message ---

Reply via email to