tags 778020 + patch
thanks

Here's a fix for the GCC 5 build issue. I added "-std=gnu89" to CMakeLists.txt. The package builds and links with GCC 5 with this change.

Upstream may prefer to move to C99 instead, please see section
"Different semantics for inline functions" at
https://gcc.gnu.org/gcc-5/porting_to.html for more background.

--
Josh Gadeken
Linux for HP Helion OpenStack, Hewlett-Packard
Description: Resolve GCC5 build errors.
 Add "-std=gnu89 to CMAKE_C_FLAGS in CMakeLists.txt"
 .
 mz (0.40-1.1) UNRELEASED; urgency=medium
 .
   * Non-maintainer upload.
   * Resolve GCC5 build errors.
Author: Joshua Gadeken <josh.gade...@hp.com>

---
The information above should follow the Patch Tagging Guidelines, please
checkout http://dep.debian.net/deps/dep3/ to learn about the format. Here
are templates for supplementary fields that you might want to add:

Origin: <vendor|upstream|other>, <url of original patch>
Bug: <url in upstream bugtracker>
Bug-Debian: https://bugs.debian.org/<bugnumber>
Bug-Ubuntu: https://launchpad.net/bugs/<bugnumber>
Forwarded: <no|not-needed|url proving that it has been forwarded>
Reviewed-By: <name and email of someone who approved the patch>
Last-Update: <YYYY-MM-DD>

--- mz-0.40.orig/CMakeLists.txt
+++ mz-0.40/CMakeLists.txt
@@ -5,7 +5,7 @@ if(COMMAND cmake_policy)
 	cmake_policy(SET CMP0003 NEW)
 endif(COMMAND cmake_policy)
 
-SET(CMAKE_C_FLAGS "-Wall -pipe -fexceptions -fstack-protector --param=ssp-buffer-size=4 -fasynchronous-unwind-tables")
+SET(CMAKE_C_FLAGS "-Wall -pipe -fexceptions -fstack-protector --param=ssp-buffer-size=4 -fasynchronous-unwind-tables -std=gnu89")
 
 ADD_CUSTOM_TARGET(uninstall
 	COMMAND ${CMAKE_COMMAND} -E echo Use 'xargs rm < install_manifest.txt' to uninstall this program

Reply via email to