Skip to content

Commit 2538f6a

Browse files
dkmshreyas-omkar
authored andcommitted
ci: stop using pull_request event, use push
We can't access github's secrets from a pull_request event (for security reasons). Use the push event, and try not to send emails when we should not. Signed-off-by: Marc Poulhiès <dkm@kataplop.net>
1 parent 0e2e175 commit 2538f6a

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

gcc/rust/rust-lang.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -285,7 +285,7 @@ grs_langhook_handle_option (
285285

286286
/* Run after parsing options. */
287287
static bool
288-
grs_langhook_post_options (const char **pfilename ATTRIBUTE_UNUSED)
288+
grs_langhook_post_options (const char **pfilename)
289289
{
290290
// can be used to override other options if required
291291

gcc/rust/rust-session-manager.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -399,9 +399,9 @@ Session::enable_dump (std::string arg)
399399
void
400400
Session::handle_input_files (int num_files, const char **files)
401401
{
402+
static const char *stdin_file[] = {"-"};
402403
if (num_files == 0)
403404
{
404-
static const char *stdin_file[] = {"-"};
405405
files = stdin_file;
406406
num_files = 1;
407407
}

0 commit comments

Comments
 (0)