clibs / debug

Conditional debug logging for C
MIT License
17 stars 2 forks source link

Compilation warnings with gcc version 4.6.3 #5

Closed stephenmathieson closed 10 years ago

stephenmathieson commented 10 years ago
[ . . . ]
test.c: In function ‘_debug_foobar’:
test.c:10:1: warning: implicit declaration of function ‘vasprintf’ [-Wimplicit-function-declaration]
test.c:10:1: warning: left-hand operand of comma expression has no effect [-Wunused-value]
test.c:10:1: warning: statement with no effect [-Wunused-value]
test.c: In function ‘_debug_foo_bar’:
test.c:11:1: warning: left-hand operand of comma expression has no effect [-Wunused-value]
test.c:11:1: warning: statement with no effect [-Wunused-value]
test.c: In function ‘_debug_foobaz’:
test.c:12:1: warning: left-hand operand of comma expression has no effect [-Wunused-value]
test.c:12:1: warning: statement with no effect [-Wunused-value]
test.c: In function ‘_debug_active’:
test.c:13:1: warning: left-hand operand of comma expression has no effect [-Wunused-value]
test.c:13:1: warning: statement with no effect [-Wunused-value]
test.c: In function ‘_debug_inactive’:
test.c:14:1: warning: left-hand operand of comma expression has no effect [-Wunused-value]
test.c:14:1: warning: statement with no effect [-Wunused-value]

I know vasprintf is my fault. It's nonstandard or whatever :/