Skip to content
Snippets Groups Projects
Commit 33606294 authored by Myles Watson's avatar Myles Watson Committed by Gerrit Code Review
Browse files

Merge "Use c++20 to allow format string checking" into main

parents bcd042c2 dbd43e71
No related branches found
No related tags found
No related merge requests found
......@@ -70,5 +70,5 @@ cc_defaults {
"-Werror=reorder-init-list",
],
c_std: "c99",
cpp_std: "c++17",
cpp_std: "c++20",
}
......@@ -264,7 +264,7 @@ sub compilation_screen {
my $link="test/mock/$hdr";
unlink "$INCDIR/$link";
symlink "$OUTDIR/$hdr", "$INCDIR/$link";
system("$CC -c -std=c++17 -o /dev/null -D" . join(" -D", @defs) . " -I" . join(" -I", @incs) . " $OUTDIR/$src");
system("$CC -c -std=c++20 -o /dev/null -D" . join(" -D", @defs) . " -I" . join(" -I", @incs) . " $OUTDIR/$src");
my $rc = $?;
($? == 0)
? printf(STDERR "SUCCESS Compiled unit \'$src\'\n")
......
......@@ -38,7 +38,7 @@ cc_defaults {
misc_undefined: ["bounds"],
},
c_std: "c99",
cpp_std: "c++17",
cpp_std: "c++20",
cflags: [
"-DGOOGLE_PROTOBUF_NO_RTTI",
"-Wall",
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment