Skip to content

Commit

Permalink
Ignore extension used warning
Browse files Browse the repository at this point in the history
  • Loading branch information
MyNameIsTrez committed Sep 13, 2024
1 parent 95ba71a commit dab9e52
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions foo.c
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,12 @@
int main(void) {
int64_t rsp;

#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Wlanguage-extension-token"

asm("mov %%rsp, %0" : "=r" (rsp));

#pragma GCC diagnostic pop

printf("%ld\n", rsp);
}

0 comments on commit dab9e52

Please sign in to comment.