* lib/canon-host.c: Suppress GCC9's -Wsuggest-attribute=malloc.
2018-06-24 Jim Meyering <meyering@fb.com>
+ canon-host.c: avoid spurious GCC 9 warning
+ * lib/canon-host.c: Suppress GCC9's -Wsuggest-attribute=malloc.
+
manywarnings: accommodate GCC 9.0-pre: remove -Wchkp and -Wabi
* build-aux/gcc-warning.spec: Add them here, each with an explanation.
* m4/manywarnings.m4: Remove them.
You should have received a copy of the GNU General Public License
along with this program. If not, see <https://www.gnu.org/licenses/>. */
+/* Without this pragma, gcc version 9.0.0 20180616 suggests that
+ the canon_* functions might be candidateifor attribute 'malloc' */
+#if 9 <= __GNUC__
+# pragma GCC diagnostic ignored "-Wsuggest-attribute=malloc"
+#endif
+
#include <config.h>
#include "canon-host.h"