[Mono-bugs] [Bug 638722] New: eglib/test/hashtable.c, et al., don't compile due to -Werror

bugzilla_noreply at novell.com bugzilla_noreply at novell.com
Sat Sep 11 14:08:57 EDT 2010



           Summary: eglib/test/hashtable.c, et al., don't compile due to
    Classification: Mono
           Product: Mono: Compilers
           Version: SVN
          Platform: x86-64
        OS/Version: Ubuntu
            Status: NEW
          Severity: Normal
          Priority: P5 - None
         Component: Other.
        AssignedTo: mono-bugs at lists.ximian.com
        ReportedBy: doc.formatique at gmail.com
         QAContact: mono-bugs at lists.ximian.com
          Found By: ---
           Blocker: ---

Created an attachment (id=388972)
 --> (http://bugzilla.novell.com/attachment.cgi?id=388972)
Trivial fixes for GCC; macros needed for other compilers

User-Agent:       Mozilla/5.0 (X11; U; Linux x86_64; en-US) AppleWebKit/5348
(KHTML, like Gecko) Ubuntu/10.10 Chromium/7.0.522.0 Chrome/7.0.522.0

eglib/test cannot be built with -Wall -Werror, yet eglib/test/Makefile.am
specifies these options. Or is this file autogenerated? (With different flags
depending on the platform?)

Reproducible: Always

Steps to Reproduce:
0. Install Ubuntu 10.04 (I believe? Or unstable^Wmaverick)
1. git clone
2. ./autogen
3. make
Actual Results:  
cc --version
cc (Ubuntu/Linaro 4.4.4-14ubuntu2) 4.4.5

make[4]: Entering directory `/[...]/mono/mono/eglib/test'
LD    test-glib
CC    test_eglib-hashtable.o
cc1: warnings being treated as errors
hashtable.c: In function ‘foreach’:
hashtable.c:9: error: unused parameter ‘key’
hashtable.c:9: error: unused parameter ‘value’
hashtable.c: In function ‘counter’:
hashtable.c:93: error: unused parameter ‘key’
hashtable.c:93: error: unused parameter ‘value’
make[4]: *** [test_eglib-hashtable.o] Error 1

(and other errors later)

Expected Results:  
successful compilation :-)

Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.
You are the assignee for the bug.

More information about the mono-bugs mailing list