public inbox for ltp@lists.linux.it
 help / color / mirror / Atom feed
* [LTP] Question about strncpy_2-1
@ 2018-12-11  9:30 Xiao Yang
  2018-12-11  9:59 ` Xiao Yang
  2018-12-11 12:39 ` Cyril Hrubis
  0 siblings, 2 replies; 9+ messages in thread
From: Xiao Yang @ 2018-12-11  9:30 UTC (permalink / raw)
  To: ltp

Hi all,

With old gcc version(e.g. gcc-4.4), compiling strncpy_2-1 gets the following error:
----------------------------------------------------------------------------------
../../../conformance/interfaces/strncpy/1-1.c: In function ‘main’:
../../../conformance/interfaces/strncpy/1-1.c:64: error: #pragma GCC diagnostic not allowed inside functions
../../../conformance/interfaces/strncpy/1-1.c:65: error: #pragma GCC diagnostic not allowed inside functions
../../../conformance/interfaces/strncpy/1-1.c:67: error: #pragma GCC diagnostic not allowed inside functions
conformance/interfaces/strncpy/1-1 compile FAILED; SKIPPING
----------------------------------------------------------------------------------

It seems that push/pop is supported and pragma diagnostic is allowed inside functions
since commit 0955be6 in GCC.

It is clear for me to know tha fact that current gcc version doesn't support above pragma
diagnostic code, so anyone can tell me if we should keep the error?

Best Regards,
Xiao Yang




^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2018-12-14 12:47 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2018-12-11  9:30 [LTP] Question about strncpy_2-1 Xiao Yang
2018-12-11  9:59 ` Xiao Yang
2018-12-11 12:37   ` Cyril Hrubis
2018-12-11 12:39 ` Cyril Hrubis
2018-12-12 10:40   ` [LTP] [PATCH] openposix/strncpy1-1: Fix compiler errors/warnings Xiao Yang
2018-12-14  8:33     ` Cyril Hrubis
2018-12-14  8:17       ` [LTP] [PATCH v2] " Xiao Yang
2018-12-14 12:47         ` Cyril Hrubis
2018-12-14  8:40       ` [LTP] [PATCH] " Xiao Yang

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox