History

Remove warning when __builtin_frame_address is used with gcc >= 6.

Christian Jullien committed 9 years ago

Commit ed99f361 parent d2e2f421 file · +13 −0Browse files

Unified · Split

lib/bcheck.c+13−0
@@ -234,6 +234,15 @@ BOUND_PTR_INDIR(8) · 233 unmodified lines
234BOUND_PTR_INDIR(12)234BOUND_PTR_INDIR(12)
235BOUND_PTR_INDIR(16)235BOUND_PTR_INDIR(16)
236 236
237#if defined(__GNUC__) && (__GNUC__ >= 6)
238/*
239 * At least gcc 6.2 complains when __builtin_frame_address is used whith
240 * nonzero argument.
241 */
242#pragma GCC diagnostic push
243#pragma GCC diagnostic ignored "-Wframe-address"
244#endif
245
237/* return the frame pointer of the caller */246/* return the frame pointer of the caller */
238#define GET_CALLER_FP(fp)\247#define GET_CALLER_FP(fp)\
239{\248{\
@@ -274,6 +283,10 @@ void FASTCALL __bound_local_delete(void *p1) · 34 unmodified lines
274 }283 }
275}284}
276 285
286#if defined(__GNUC__) && (__GNUC__ >= 6)
287#pragma GCC diagnostic pop
288#endif
289
277static BoundEntry *__bound_new_page(void)290static BoundEntry *__bound_new_page(void)
278{291{
279 BoundEntry *page;292 BoundEntry *page;

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t