This is the mail archive of the gdb-prs@sources.redhat.com mailing list for the GDB 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]

gdb/348: gdb testsuite programs: "warning: no return statement in function returning non-void"



>Number:         348
>Category:       gdb
>Synopsis:       gdb testsuite programs: "warning: no return statement in function returning non-void"
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    unassigned
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Sun Feb 10 18:48:01 PST 2002
>Closed-Date:
>Last-Modified:
>Originator:     mec@shout.net
>Release:        gdb 5.1.1, gdb 5_1-2001-07-29-branch, gdb HEAD
>Organization:
>Environment:
target=i686-pc-linux-gnulibc2.2-rh-7.2
host=native
gdb={5.1.1,5_1-2001-07-29-branch,HEAD}
gcc=HEAD
gopt={-gdwarf-2,-gstabs+}	
>Description:
gcc HEAD changed recently to catch more bad code:

  # gcc/ChangeLog

  2002-02-06  Jason Merrill  <jason@redhat.com>

         * c-decl.c (finish_function): Warn about a non-void function with
         no return statement and no abnormal exit.

The gdb testsuite has this problem in:

  gdb.base/funcargs.c
  gdb.threads/linux-dp.c

          
>How-To-Repeat:
Run the test suite with a gcc HEAD compiler.
>Fix:
Add a "void" return type to the appropriate functions.
>Release-Note:
>Audit-Trail:
>Unformatted:


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