> On Oct 11, 2019, at 3:29 PM, Chris Plummer <chris.plum...@oracle.com> wrote: > Second, can the macros be used just before and after the strncpy reference > rather than around the whole function? It would clarify both that the strncpy > use has these macros in place and that the macros are there for the strncpy. > As it stands now, if you see the macro references it won't be readily obvious > why they are there.
+1, unless there’s some reason that doesn’t work. The scoping rules for pragmas are not standardized (because pragmas aren’t), and the gcc documentation is rather thin.