Skip to content
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

const initializer_list is not a constant expression #1250

Merged
merged 1 commit into from
Apr 8, 2020

Conversation

qiluo-msft
Copy link
Contributor

ref: https://lgtm.com/logs/17a00021acc56bf7a82ba4ade589d7c385cca8bb/lang:cpp

[2020-04-08 10:39:16] [build] g++ -DHAVE_CONFIG_H -I. -I.. -I .. -I ../warmrestart -I flex_counter -I debug_counter -g -DNDEBUG  -std=c++14 -Wall -fPIC -Wno-write-strings -I/usr/include/libnl3 -I/usr/include/swss -Werror -Wno-reorder -Wcast-align -Wcast-qual -Wconversion -Wdisabled-optimization -Wextra -Wfloat-equal -Wformat=2 -Wformat-nonliteral -Wformat-security -Wformat-y2k -Wimport -Winit-self -Winvalid-pch -Wlong-long -Wmissing-field-initializers -Wmissing-format-attribute -Wno-aggregate-return -Wno-padded -Wno-switch-enum -Wno-unused-parameter -Wpacked -Wpointer-arith -Wredundant-decls -Wstack-protector -Wstrict-aliasing=3 -Wswitch -Wswitch-default -Wunreachable-code -Wunused -Wvariadic-macros -Wno-switch-default -Wno-long-long -Wno-redundant-decls -I /usr/include/sai -I/opt/out/snapshot/workspace/usr/include -I/opt/out/snapshot/workspace/usr/include/swss -I/opt/out/snapshot/workspace/usr/include/sai  -g -O2 -MT orchagent-portsorch.o -MD -MP -MF .deps/orchagent-portsorch.Tpo -c -o orchagent-portsorch.o `test -f 'portsorch.cpp' || echo './'`portsorch.cpp
[2020-04-08 10:39:18] [build] portsorch.cpp: In member function ‘virtual void PortsOrch::doTask()’:
[2020-04-08 10:39:18] [build] portsorch.cpp:2791:5: error: ‘const std::initializer_list<const char*>{((const char* const*)(&<anonymous>)), 5}’ is not a constant expression
[2020-04-08 10:39:18] [build]  2791 |     };
[2020-04-08 10:39:18] [build]       |     ^

@qiluo-msft qiluo-msft requested review from daall and lguohan April 8, 2020 17:24
@qiluo-msft qiluo-msft merged commit 58627af into sonic-net:master Apr 8, 2020
@stephenxs
Copy link
Collaborator

@abdosi We need this PR for 201911 LGTM failure as well. Can you please cherry-pick it? Thanks

@abdosi
Copy link
Contributor

abdosi commented Oct 11, 2021

@abdosi We need this PR for 201911 LGTM failure as well. Can you please cherry-pick it? Thanks

Done

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants