Skip to content

tst#1

Open
LostPointer wants to merge 1 commit intomainfrom
test_pr
Open

tst#1
LostPointer wants to merge 1 commit intomainfrom
test_pr

Conversation

@LostPointer
Copy link
Copy Markdown
Contributor

No description provided.

Copy link
Copy Markdown

@github-actions github-actions Bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

clang-tidy made some suggestions

Comment thread task_03/src/main.cpp
@@ -1 +1,4 @@
int main() { return 0; }
int main() {
int *p = new int;
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

warning: Value stored to 'p' during its initialization is never read [clang-analyzer-deadcode.DeadStores]

  int *p = new int;
       ^
Additional context

task_03/src/main.cpp:1: Value stored to 'p' during its initialization is never read

  int *p = new int;
       ^

Comment thread task_03/src/main.cpp
int main() {
int *p = new int;
return 0;
}
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

warning: Potential leak of memory pointed to by 'p' [clang-analyzer-cplusplus.NewDeleteLeaks]

  return 0;
  ^
Additional context

task_03/src/main.cpp:1: Memory is allocated

  int *p = new int;
           ^

task_03/src/main.cpp:2: Potential leak of memory pointed to by 'p'

  return 0;
  ^

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant