Re: [OMPI devel] Continued warnings?

2018-07-31 Thread Jeff Squyres (jsquyres) via devel
Confirmed and filed https://github.com/open-mpi/ompi/issues/5502.


> On Jul 31, 2018, at 9:31 AM, Ralph H Castain  wrote:
> 
> Just curious - will this ever be fixed? From today’s head of master:
> 
> In file included from info.c:46:0:
> info.c: In function 'opal_info_dup_mode':
> ../../opal/util/info.h:112:31: warning: '%s' directive output may be 
> truncated writing up to 36 bytes into a region of size 27 
> [-Wformat-truncation=]
>  #define OPAL_INFO_SAVE_PREFIX "_OMPI_IN_"
>^
> info.c:212:22: note: in expansion of macro 'OPAL_INFO_SAVE_PREFIX'
>   OPAL_INFO_SAVE_PREFIX "%s", iterator->ie_key);
>   ^
> info.c:212:45: note: format string is defined here
>   OPAL_INFO_SAVE_PREFIX "%s", iterator->ie_key);
>  ^~
> info.c:211:18: note: 'snprintf' output between 10 and 46 bytes into a 
> destination of size 36
>   snprintf(savedkey, OPAL_MAX_INFO_KEY,
>   ^
>   OPAL_INFO_SAVE_PREFIX "%s", iterator->ie_key);
>   ~
> 
> 
> ___
> devel mailing list
> devel@lists.open-mpi.org
> https://lists.open-mpi.org/mailman/listinfo/devel


-- 
Jeff Squyres
jsquy...@cisco.com

___
devel mailing list
devel@lists.open-mpi.org
https://lists.open-mpi.org/mailman/listinfo/devel

[OMPI devel] Continued warnings?

2018-07-31 Thread Ralph H Castain
Just curious - will this ever be fixed? From today’s head of master:

In file included from info.c:46:0:
info.c: In function 'opal_info_dup_mode':
../../opal/util/info.h:112:31: warning: '%s' directive output may be truncated 
writing up to 36 bytes into a region of size 27 [-Wformat-truncation=]
 #define OPAL_INFO_SAVE_PREFIX "_OMPI_IN_"
   ^
info.c:212:22: note: in expansion of macro 'OPAL_INFO_SAVE_PREFIX'
  OPAL_INFO_SAVE_PREFIX "%s", iterator->ie_key);
  ^
info.c:212:45: note: format string is defined here
  OPAL_INFO_SAVE_PREFIX "%s", iterator->ie_key);
 ^~
info.c:211:18: note: 'snprintf' output between 10 and 46 bytes into a 
destination of size 36
  snprintf(savedkey, OPAL_MAX_INFO_KEY,
  ^
  OPAL_INFO_SAVE_PREFIX "%s", iterator->ie_key);
  ~


___
devel mailing list
devel@lists.open-mpi.org
https://lists.open-mpi.org/mailman/listinfo/devel