-
Notifications
You must be signed in to change notification settings - Fork 18.8k
Decoder does not work properly with nested pointers using gcc #13218
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
@brahmaroutu it might be good to see if we can get rid of hostConfigWrapper entirely since it seems like its not really used for much if we do this PR. |
2f66887
to
b5560d7
Compare
@duglin As per your comments, cleaned up the code and removed hostConfigWrapper |
7a031b3
to
73b6759
Compare
func (c ContainerConfigWrapper) HostConfig() *HostConfig { | ||
if c.hostConfigWrapper == nil { | ||
return new(HostConfig) | ||
func (w ContainerConfigWrapper) GetHostConfig() *HostConfig { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should be w *ContainerConfigWrapper
3f1911d
to
94a49bd
Compare
@LK4D4 Thanks for the review I updated code. |
94a49bd
to
aec411c
Compare
aec411c
to
ae6724e
Compare
Signed-off-by: Srini Brahmaroutu <srbrahma@us.ibm.com>
ae6724e
to
eb97de7
Compare
LGTM |
Decoder does not work properly with nested pointers using gcc
the runconfig/config_test TestDecodeContainerConfig test is failing when compiled with gccgo. There is a bug files with gccgo specifically to address the decoder issue. https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66138
I believe there is no reason to add these fields to the top level structure and hence this PR.
Signed-off-by: Srini Brahmaroutu srbrahma@us.ibm.com