[ 
https://issues.apache.org/jira/browse/DISPATCH-1965?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17306550#comment-17306550
 ] 

Ganesh Murthy commented on DISPATCH-1965:
-----------------------------------------

I wonder if the fix to DISPATCH-1660 
(https://github.com/apache/qpid-dispatch/commit/1625d831354384c085d288dfaf9a0d116c626d3a)
 fixed this issue

> Dispatch does not compile with gcc 10 when -Og is used
> ------------------------------------------------------
>
>                 Key: DISPATCH-1965
>                 URL: https://issues.apache.org/jira/browse/DISPATCH-1965
>             Project: Qpid Dispatch
>          Issue Type: Bug
>    Affects Versions: 1.15.0
>            Reporter: Jiri Daněk
>            Priority: Minor
>
> {code}
> [23/116] Building C object src/CMakeFiles/qpid-dispatch.dir/hash.c.o
> FAILED: src/CMakeFiles/qpid-dispatch.dir/hash.c.o 
> /nix/store/6h5455lvpkzksi2mz8h7cc85nxl9ln3z-gcc-wrapper-10.2.0/bin/cc 
> -D_DEBUG -Dqpid_dispatch_EXPORTS -I../include -Iinclude 
> -I/home/jdanek/repos/qpid/qpid-proton/build/install/include 
> -I/nix/store/0yhk4sk4x9s9hsrf3p1skbfy1pwd1rbf-python3-3.8.5/include/python3.8 
> -I../src -I../src/router_core -Isrc -Og -DQD_MEMORY_DEBUG -g 
> -fno-omit-frame-pointer -fsanitize=address,undefined -std=gnu99 -g -fPIC 
> -Werror -Wall -Wpedantic -MD -MT src/CMakeFiles/qpid-dispatch.dir/hash.c.o 
> -MF src/CMakeFiles/qpid-dispatch.dir/hash.c.o.d -o 
> src/CMakeFiles/qpid-dispatch.dir/hash.c.o -c ../src/hash.c
> ../src/hash.c: In function ���qd_hash_retrieve_prefix���:
> ../src/hash.c:303:17: error: ���item��� may be used uninitialized in this 
> function [-Werror=maybe-uninitialized]
>  303 | *val = item->v.val;
>  | ~~~~~~~^~~~
> ../src/hash.c: In function ���qd_hash_retrieve_prefix_const���:
> ../src/hash.c:327:23: error: ���item��� may be used uninitialized in this 
> function [-Werror=maybe-uninitialized]
>  327 | *val = item->v.val_const;
>  | ~~~~~~~^~~~~~~~~~
> cc1: all warnings being treated as errors
> [32/116] Building C object src/CMakeFiles/qpid-dispatch.dir/message.c.o
> {code}



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscr...@qpid.apache.org
For additional commands, e-mail: dev-h...@qpid.apache.org

Reply via email to