Skip to content

Commit 8c07400

Browse files
committed
signal_open_memstream attempt
1 parent 46cc107 commit 8c07400

2 files changed

Lines changed: 6 additions & 0 deletions

File tree

‎c/operator.c‎

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -322,9 +322,14 @@ int main() {
322322
`&` and `|` have lower precedence than `==`!
323323
324324
Notorious design choice, since they are analogous to + and * ...
325+
326+
GCC warns with -Wparentheses
325327
*/
326328
{
329+
#pragma GCC diagnostic push
330+
#pragma GCC diagnostic ignored "-Wparentheses"
327331
assert(!(2 & 0 == 0 ));
332+
#pragma GCC diagnostic pop
328333
assert(!(2 & (0 == 0)));
329334
assert( (2 & 0) == 0 );
330335
}

‎posix/common.h‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,7 @@
5757
#include <pwd.h> /* getpwuid, getpwnam, getpwent */
5858
#include <regex.h>
5959
#include <sched.h>
60+
#include <signal.h>
6061
#include <sys/mman.h> /* mmap, munmap */
6162
#include <sys/ipc.h>
6263
#include <sys/resource.h> /* rusage, getrusage, rlimit, getrlimit */

0 commit comments

Comments
 (0)