diff --git a/applets/pbot-vm/host/bin/vm-exec b/applets/pbot-vm/host/bin/vm-exec index 4fd94e09..3361fcf1 100755 --- a/applets/pbot-vm/host/bin/vm-exec +++ b/applets/pbot-vm/host/bin/vm-exec @@ -246,7 +246,7 @@ sub configure_context($context, $config) { # set any undefined values to default values $context->{nick} //= 'vm'; $context->{channel} //= 'vm'; - $context->{lang} //= 'c2x'; + $context->{lang} //= 'clang2x'; $context->{'vm-domain'} //= DOMAIN; $context->{'vm-addr'} //= ADDR; $context->{'vm-health'} //= HEALTH; diff --git a/applets/pbot-vm/host/lib/Languages/_c_base.pm b/applets/pbot-vm/host/lib/Languages/_c_base.pm index 6246e1b7..b5e082a1 100755 --- a/applets/pbot-vm/host/lib/Languages/_c_base.pm +++ b/applets/pbot-vm/host/lib/Languages/_c_base.pm @@ -22,7 +22,7 @@ sub initialize { $self->{sourcefile} = 'prog.c'; $self->{execfile} = 'prog'; - $self->{default_options} = '-Wextra -Wall -Wno-unused-parameter -pedantic -Wfloat-equal -Wshadow -std=c11 -lm -Wfatal-errors'; + $self->{default_options} = '-Wextra -Wall -Wno-unused-parameter -Wno-unused-variable -pedantic -Wfloat-equal -Wshadow -std=c11 -lm -Wfatal-errors'; $self->{options_paste} = '-fdiagnostics-show-caret'; $self->{options_nopaste} = '-fno-diagnostics-show-caret'; $self->{cmdline} = 'gcc -ggdb -g3 $sourcefile $options -o $execfile'; diff --git a/applets/pbot-vm/host/lib/Languages/c11.pm b/applets/pbot-vm/host/lib/Languages/c11.pm index 0b615414..ef309564 100755 --- a/applets/pbot-vm/host/lib/Languages/c11.pm +++ b/applets/pbot-vm/host/lib/Languages/c11.pm @@ -14,7 +14,7 @@ sub initialize { $self->{sourcefile} = 'prog.c'; $self->{execfile} = 'prog'; - $self->{default_options} = '-Wextra -Wall -Wno-unused-parameter -pedantic -Wfloat-equal -Wshadow -std=c11 -lm -Wfatal-errors -fsanitize=alignment,undefined -fsanitize-address-use-after-scope -fno-omit-frame-pointer'; + $self->{default_options} = '-Wextra -Wall -Wno-unused-parameter -Wno-unused-variable -pedantic -Wfloat-equal -Wshadow -std=c11 -lm -Wfatal-errors -fsanitize=alignment,undefined -fsanitize-address-use-after-scope -fno-omit-frame-pointer'; $self->{options_paste} = '-fdiagnostics-show-caret'; $self->{options_nopaste} = '-fno-diagnostics-show-caret'; $self->{cmdline} = 'gcc -gdwarf-2 -g3 $sourcefile $options -o $execfile'; diff --git a/applets/pbot-vm/host/lib/Languages/c2x.pm b/applets/pbot-vm/host/lib/Languages/c2x.pm index 346bff7e..52cb4c59 100755 --- a/applets/pbot-vm/host/lib/Languages/c2x.pm +++ b/applets/pbot-vm/host/lib/Languages/c2x.pm @@ -14,7 +14,7 @@ sub initialize { $self->{sourcefile} = 'prog.c'; $self->{execfile} = 'prog'; - $self->{default_options} = '-Wextra -Wall -Wno-unused-parameter -pedantic -Wfloat-equal -Wshadow -std=c2x -lm -Wfatal-errors -fsanitize=alignment,undefined -fsanitize-address-use-after-scope -fno-omit-frame-pointer'; + $self->{default_options} = '-Wextra -Wall -Wno-unused-parameter -Wno-unused-variable -pedantic -Wfloat-equal -Wshadow -std=c2x -lm -Wfatal-errors -fsanitize=alignment,undefined -fsanitize-address-use-after-scope -fno-omit-frame-pointer'; $self->{options_paste} = '-fdiagnostics-show-caret'; $self->{options_nopaste} = '-fno-diagnostics-show-caret'; $self->{cmdline} = 'gcc -gdwarf-2 -g3 $sourcefile $options -o $execfile'; diff --git a/applets/pbot-vm/host/lib/Languages/c89.pm b/applets/pbot-vm/host/lib/Languages/c89.pm index eb6f3fd8..9fcd8e26 100755 --- a/applets/pbot-vm/host/lib/Languages/c89.pm +++ b/applets/pbot-vm/host/lib/Languages/c89.pm @@ -14,7 +14,7 @@ sub initialize { $self->{sourcefile} = 'prog.c'; $self->{execfile} = 'prog'; - $self->{default_options} = '-Wextra -Wall -Wno-unused-parameter -pedantic -Wfloat-equal -Wshadow -std=c89 -lm -Wfatal-errors -fsanitize=alignment,undefined'; + $self->{default_options} = '-Wextra -Wall -Wno-unused-parameter -Wno-unused-variable -pedantic -Wfloat-equal -Wshadow -std=c89 -lm -Wfatal-errors -fsanitize=alignment,undefined'; $self->{options_paste} = '-fdiagnostics-show-caret'; $self->{options_nopaste} = '-fno-diagnostics-show-caret'; $self->{cmdline} = 'gcc -gdwarf-2 -g3 $sourcefile $options -o $execfile'; diff --git a/applets/pbot-vm/host/lib/Languages/c99.pm b/applets/pbot-vm/host/lib/Languages/c99.pm index dd54bbe1..ccdaec1b 100755 --- a/applets/pbot-vm/host/lib/Languages/c99.pm +++ b/applets/pbot-vm/host/lib/Languages/c99.pm @@ -14,7 +14,7 @@ sub initialize { $self->{sourcefile} = 'prog.c'; $self->{execfile} = 'prog'; - $self->{default_options} = '-Wextra -Wall -Wno-unused-parameter -pedantic -Wfloat-equal -Wshadow -std=c99 -lm -Wfatal-errors -fsanitize=alignment,undefined'; + $self->{default_options} = '-Wextra -Wall -Wno-unused-parameter -Wno-unused-variable -pedantic -Wfloat-equal -Wshadow -std=c99 -lm -Wfatal-errors -fsanitize=alignment,undefined'; $self->{options_paste} = '-fdiagnostics-show-caret'; $self->{options_nopaste} = '-fno-diagnostics-show-caret'; $self->{cmdline} = 'gcc -gdwarf-2 -g3 $sourcefile $options -o $execfile'; diff --git a/applets/pbot-vm/host/lib/Languages/clang11.pm b/applets/pbot-vm/host/lib/Languages/clang11.pm index 5342e1fe..48c1d584 100755 --- a/applets/pbot-vm/host/lib/Languages/clang11.pm +++ b/applets/pbot-vm/host/lib/Languages/clang11.pm @@ -11,7 +11,7 @@ sub initialize { $self->{sourcefile} = 'prog.c'; $self->{execfile} = 'prog'; - $self->{default_options} = '-Wextra -Wall -Wno-unused-parameter -pedantic -Wfloat-equal -Wshadow -std=c11 -lm -Wfatal-errors -fsanitize=integer,undefined,alignment -fsanitize-address-use-after-scope -fno-omit-frame-pointer'; + $self->{default_options} = '-Wextra -Wall -Wno-unused-parameter -Wno-unused-variable -pedantic -Wfloat-equal -Wshadow -std=c11 -lm -Wfatal-errors -fsanitize=integer,undefined,alignment -fsanitize-address-use-after-scope -fno-omit-frame-pointer'; $self->{options_paste} = '-fcaret-diagnostics'; $self->{options_nopaste} = '-fno-caret-diagnostics'; $self->{cmdline} = 'clang -gdwarf-2 -g3 $sourcefile $options -o $execfile'; diff --git a/applets/pbot-vm/host/lib/Languages/clang2x.pm b/applets/pbot-vm/host/lib/Languages/clang2x.pm index 720c8811..7dccfcf0 100755 --- a/applets/pbot-vm/host/lib/Languages/clang2x.pm +++ b/applets/pbot-vm/host/lib/Languages/clang2x.pm @@ -14,7 +14,7 @@ sub initialize { $self->{sourcefile} = 'prog.c'; $self->{execfile} = 'prog'; - $self->{default_options} = '-Wextra -Wall -Wno-unused-parameter -pedantic -Wfloat-equal -Wshadow -std=c2x -lm -Wfatal-errors -fsanitize=integer,alignment,undefined -fsanitize-address-use-after-scope -fno-omit-frame-pointer'; + $self->{default_options} = '-Wextra -Wall -Wno-unused-parameter -Wno-unused-variable -pedantic -Wfloat-equal -Wshadow -std=c2x -lm -Wfatal-errors -fsanitize=integer,alignment,undefined -fsanitize-address-use-after-scope -fno-omit-frame-pointer'; $self->{options_paste} = '-fcaret-diagnostics'; $self->{options_nopaste} = '-fno-caret-diagnostics'; $self->{cmdline} = 'clang -gdwarf-2 -g3 $sourcefile $options -o $execfile'; diff --git a/applets/pbot-vm/host/lib/Languages/clang89.pm b/applets/pbot-vm/host/lib/Languages/clang89.pm index 33293ddd..73409e70 100755 --- a/applets/pbot-vm/host/lib/Languages/clang89.pm +++ b/applets/pbot-vm/host/lib/Languages/clang89.pm @@ -14,7 +14,7 @@ sub initialize { $self->{sourcefile} = 'prog.c'; $self->{execfile} = 'prog'; - $self->{default_options} = '-Wextra -Wall -Wno-unused-parameter -pedantic -Wfloat-equal -Wshadow -std=c89 -lm -Wfatal-errors -fsanitize=integer,undefined,alignment'; + $self->{default_options} = '-Wextra -Wall -Wno-unused-parameter -Wno-unused-variable -pedantic -Wfloat-equal -Wshadow -std=c89 -lm -Wfatal-errors -fsanitize=integer,undefined,alignment'; $self->{options_paste} = '-fcaret-diagnostics'; $self->{options_nopaste} = '-fno-caret-diagnostics'; $self->{cmdline} = 'clang -gdwarf-2 -g3 $sourcefile $options -o $execfile'; diff --git a/applets/pbot-vm/host/lib/Languages/clang99.pm b/applets/pbot-vm/host/lib/Languages/clang99.pm index 8ff68314..cdbcad8b 100755 --- a/applets/pbot-vm/host/lib/Languages/clang99.pm +++ b/applets/pbot-vm/host/lib/Languages/clang99.pm @@ -14,7 +14,7 @@ sub initialize { $self->{sourcefile} = 'prog.c'; $self->{execfile} = 'prog'; - $self->{default_options} = '-Wextra -Wall -Wno-unused-parameter -pedantic -Wfloat-equal -Wshadow -std=c99 -lm -Wfatal-errors -fsanitize=integer,undefined,alignment'; + $self->{default_options} = '-Wextra -Wall -Wno-unused-parameter -Wno-unused-variable -pedantic -Wfloat-equal -Wshadow -std=c99 -lm -Wfatal-errors -fsanitize=integer,undefined,alignment'; $self->{options_paste} = '-fcaret-diagnostics'; $self->{options_nopaste} = '-fno-caret-diagnostics'; $self->{cmdline} = 'clang -gdwarf-2 -g3 $sourcefile $options -o $execfile'; diff --git a/applets/pbot-vm/host/lib/Languages/clangpp.pm b/applets/pbot-vm/host/lib/Languages/clangpp.pm index 63cdcef1..c7d1c48a 100755 --- a/applets/pbot-vm/host/lib/Languages/clangpp.pm +++ b/applets/pbot-vm/host/lib/Languages/clangpp.pm @@ -15,7 +15,7 @@ sub initialize { $self->{name} = 'clang++'; $self->{sourcefile} = 'prog.cpp'; $self->{execfile} = 'prog'; - $self->{default_options} = '-std=c++14 -Wextra -Wall -Wno-unused-parameter -pedantic -Wfloat-equal -Wshadow -lm -Wfatal-errors -fsanitize=alignment,undefined'; + $self->{default_options} = '-std=c++14 -Wextra -Wall -Wno-unused-parameter -Wno-unused-variable -pedantic -Wfloat-equal -Wshadow -lm -Wfatal-errors -fsanitize=alignment,undefined'; $self->{options_paste} = '-fcaret-diagnostics'; $self->{options_nopaste} = '-fno-caret-diagnostics'; $self->{cmdline} = 'clang++-3.7 -I/usr/include/x86_64-linux-gnu/c++/5/ -gdwarf-2 -g3 $sourcefile $options -o $execfile'; diff --git a/applets/pbot-vm/host/lib/Languages/cpp.pm b/applets/pbot-vm/host/lib/Languages/cpp.pm index f4fafb23..cba97752 100755 --- a/applets/pbot-vm/host/lib/Languages/cpp.pm +++ b/applets/pbot-vm/host/lib/Languages/cpp.pm @@ -15,7 +15,7 @@ sub initialize { $self->{name} = 'c++'; $self->{sourcefile} = 'prog.cpp'; $self->{execfile} = 'prog'; - $self->{default_options} = '-std=c++14 -Wextra -Wall -Wno-unused -pedantic -Wfloat-equal -Wshadow -lm -Wfatal-errors -fsanitize=alignment,undefined'; + $self->{default_options} = '-std=c++14 -Wextra -Wall -Wno-unused-parameter -Wno-unused-variable -pedantic -Wfloat-equal -Wshadow -lm -Wfatal-errors -fsanitize=alignment,undefined'; $self->{options_paste} = '-fdiagnostics-show-caret'; $self->{options_nopaste} = '-fno-diagnostics-show-caret'; $self->{cmdline} = 'g++ -ggdb -g3 $sourcefile $options -o $execfile'; diff --git a/lib/PBot/VERSION.pm b/lib/PBot/VERSION.pm index e9af0910..dd4a065d 100644 --- a/lib/PBot/VERSION.pm +++ b/lib/PBot/VERSION.pm @@ -25,8 +25,8 @@ use PBot::Imports; # These are set by the /misc/update_version script use constant { BUILD_NAME => "PBot", - BUILD_REVISION => 4783, - BUILD_DATE => "2024-09-08", + BUILD_REVISION => 4784, + BUILD_DATE => "2024-09-19", }; sub initialize {}