diff options
Diffstat (limited to 'ldpd/log.c')
| -rw-r--r-- | ldpd/log.c | 4 | 
1 files changed, 4 insertions, 0 deletions
diff --git a/ldpd/log.c b/ldpd/log.c index 1aaad41a10..88ce03095a 100644 --- a/ldpd/log.c +++ b/ldpd/log.c @@ -77,7 +77,11 @@ log_warn(const char *emsg, ...)  			vlog(LOG_ERR, emsg, ap);  			logit(LOG_ERR, "%s", strerror(errno));  		} else { +#pragma GCC diagnostic push +#pragma GCC diagnostic ignored "-Wformat-nonliteral" +			/* format extended above */  			vlog(LOG_ERR, nfmt, ap); +#pragma GCC diagnostic pop  			free(nfmt);  		}  		va_end(ap);  | 
