Ticket #63105: patch-pragmas.diff
File patch-pragmas.diff, 935 bytes (added by ballapete (Peter "Pete" Dyballa), 3 years ago) |
---|
-
base/scommon.h
old new 118 118 static inline void 119 119 stream_cursor_read_init(stream_cursor_read *r, const byte *buf, size_t length) 120 120 { 121 #ifdef __GNUC__122 # pragma GCC diagnostic push123 # pragma GCC diagnostic ignored "-Warray-bounds"124 #endif125 121 /* starting pos for pointer is always one position back */ 126 122 r->ptr = buf - 1; 127 123 r->limit = r->ptr + length; 128 #ifdef __GNUC__129 # pragma GCC diagnostic pop130 #endif131 124 } 132 125 133 126 static inline void 134 127 stream_cursor_write_init(stream_cursor_write *w, const byte *buf, size_t length) 135 128 { 136 #ifdef __GNUC__137 # pragma GCC diagnostic push138 # pragma GCC diagnostic ignored "-Warray-bounds"139 #endif140 129 /* starting pos for pointer is always one position back */ 141 130 w->ptr = (byte *)buf - 1; 142 131 w->limit = (byte *)w->ptr + length; 143 #ifdef __GNUC__144 # pragma GCC diagnostic pop145 #endif146 132 } 147 133 148 134 /*