Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

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
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -70,5 +70,5 @@ cc_defaults {
        "-Werror=reorder-init-list",
    ],
    c_std: "c99",
    cpp_std: "c++17",
    cpp_std: "c++20",
}
+1 −1
Original line number Diff line number Diff line
@@ -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")
+1 −1
Original line number Diff line number Diff line
@@ -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",