Skip to content

Commit

Permalink
Ignore a warning with unused args in asm on NIX (#2508)
Browse files Browse the repository at this point in the history
* Ignore a warning when compiling with asm

* Add pr to changelog
  • Loading branch information
sbancuz authored Jan 14, 2025
1 parent 4ef3c16 commit 7741a18
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
3 changes: 2 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ The table below shows which release corresponds to each branch, and what date th
| [2.2.0](#220) | | Jan 5, 2015

## 4.15.0 (`dev`)

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

[2508]: https://github.com/Gallopsled/pwntools/pull/2508
[2471]: https://github.com/Gallopsled/pwntools/pull/2471
[2358]: https://github.com/Gallopsled/pwntools/pull/2358
[2457]: https://github.com/Gallopsled/pwntools/pull/2457
Expand Down
1 change: 1 addition & 0 deletions pwnlib/asm.py
Original file line number Diff line number Diff line change
Expand Up @@ -471,6 +471,7 @@ def cpp(shellcode):
code = _include_header() + shellcode
cmd = [
cpp,
'-Wno-unused-command-line-argument',
'-C',
'-nostdinc',
'-undef',
Expand Down

0 comments on commit 7741a18

Please sign in to comment.