Skip to content

Commit 7741a18

Browse files
authored
Ignore a warning with unused args in asm on NIX (#2508)
* Ignore a warning when compiling with asm * Add pr to changelog
1 parent 4ef3c16 commit 7741a18

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

CHANGELOG.md

+2-1
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ The table below shows which release corresponds to each branch, and what date th
7272
| [2.2.0](#220) | | Jan 5, 2015
7373

7474
## 4.15.0 (`dev`)
75-
75+
- [#2508][2508] Ignore a warning when compiling with asm
7676
- [#2471][2471] Properly close spawned kitty window
7777
- [#2358][2358] Cache output of `asm()`
7878
- [#2457][2457] Catch exception of non-ELF files in checksec.
@@ -90,6 +90,7 @@ The table below shows which release corresponds to each branch, and what date th
9090
- [#2476][2476] Deprecate 'keepends' argument in favor of 'drop' in `tube.recvline*`
9191
- [#2364][2364] Deprecate direct commandline scripts invocation and exclude nonsense ones
9292

93+
[2508]: https://github.com/Gallopsled/pwntools/pull/2508
9394
[2471]: https://github.com/Gallopsled/pwntools/pull/2471
9495
[2358]: https://github.com/Gallopsled/pwntools/pull/2358
9596
[2457]: https://github.com/Gallopsled/pwntools/pull/2457

pwnlib/asm.py

+1
Original file line numberDiff line numberDiff line change
@@ -471,6 +471,7 @@ def cpp(shellcode):
471471
code = _include_header() + shellcode
472472
cmd = [
473473
cpp,
474+
'-Wno-unused-command-line-argument',
474475
'-C',
475476
'-nostdinc',
476477
'-undef',

0 commit comments

Comments
 (0)