[ZBX-6435] Compiler warnings with GCC 4.7.2 and 4.8.0 Created: 2013 Mar 25 Updated: 2017 May 30 Resolved: 2013 Apr 11 |
|
Status: | Closed |
Project: | ZABBIX BUGS AND ISSUES |
Component/s: | Proxy (P), Server (S) |
Affects Version/s: | 2.0.5, 2.1.0 |
Fix Version/s: | 2.1.0 |
Type: | Incident report | Priority: | Trivial |
Reporter: | Volker Fröhlich | Assignee: | Unassigned |
Resolution: | Fixed | Votes: | 0 |
Labels: | gcc | ||
Remaining Estimate: | Not Specified | ||
Time Spent: | Not Specified | ||
Original Estimate: | Not Specified | ||
Environment: |
EL 6 x86_64 |
Description |
I can currently see two warnings when compiling Zabbix. I included the 4.8 and the 4.7.2 warning messages: 4.8: odbc.c: In function 'odbc_DBselect': 4.7: odbc.c: In function 'odbc_DBselect': — 4.8: fatal.c:23:0: warning: "_GNU_SOURCE" redefined [enabled by default]
4.7: fatal.c:23:0: warning: "_GNU_SOURCE" redefined [enabled by default] |
Comments |
Comment by Volker Fröhlich [ 2013 Mar 25 ] |
4.8.0 on PPC further reveals: fatal.c: In function 'print_fatal_info': The odbc.c warning is only there for 64 bit builds, I found. |
Comment by Andris Mednis [ 2013 Apr 09 ] |
Thanks, Volker, for reporting this! |
Comment by Andris Mednis [ 2013 Apr 09 ] |
Fixed in development branch svn://svn.zabbix.com/branches/dev/ZBX-6435 (trunk) |
Comment by Volker Fröhlich [ 2013 Apr 11 ] |
All gcc 4.8, Intel and PPC 32 and 64 bit architectures show two warnings for lld_item.c: In function 'DBlld_update_items': ... checks_ipmi.c:836:3: warning: enumeration value 'IPMI_CHANGED' not handled in switch [-Wswitch] |
Comment by Andris Mednis [ 2013 Apr 11 ] |
Fixed in development branch svn://svn.zabbix.com/branches/dev/ZBX-6435 (trunk) rev. 34952 |
Comment by Andris Zeila [ 2013 Apr 19 ] |
Successfully tested. |
Comment by Andris Mednis [ 2013 Apr 19 ] |
Fixed in version pre-2.1.0 rev. 35130 |
Comment by Volker Fröhlich [ 2013 Jul 05 ] |
For the record: The latter two are still present in the Alpha release. Contrary to what I said above, the warning is also there with gcc 4.7.2. lld_item.c: In function 'DBlld_update_items': lld_item.c:540:18: note: 'item' was declared here |
Comment by Volker Fröhlich [ 2013 Jul 06 ] |
No, forget that last comment, I was using the old tarball I made from SVN then. |
Comment by Volker Fröhlich [ 2013 Jul 06 ] |
4.7.2 and 4.8: valuecache.c: In function 'zbx_vc_get_value_range': EL6's gcc additionally warns about: comms.c: In function 'zbx_tcp_check_security': modules.c: In function 'load_modules': |
Comment by Volker Fröhlich [ 2013 Jul 07 ] |
Complaints from EL5's gcc: memalloc.c: In function '__zbx_mem_malloc': evalfunc.c: In function 'add_value_suffix_uptime': httpmacro.c: In function 'httpmacro_append_pair': nodesync.c: In function 'node_sync': |
Comment by Andris Zeila [ 2013 Jul 08 ] |
Thanks, fixed value cache related warnings (valuecache.c, dbcache.c) in |