To avoid issues like https://community.openvpn.net/openvpn/ticket/792 to happen 
again, I wanted to also submit a patch that adds a few -Werror= flags. However, 
I wonder what would be your preferred way to only add flags that are supported 
by the compiler.

One solution is with
  https://www.gnu.org/software/autoconf-archive/ax_check_compile_flag.html
which means:
- copy ax_check_compile_flag.m4 from the autoconf archive to the openvpn 
repository
- include it in configure.ac
- and for example:

AX_CHECK_COMPILE_FLAG([ -Werror=implicit ], [
    CFLAGS_EXTRA="$CFLAGS_EXTRA -Werror=implicit"
])

Julien

------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most 
engaging tech sites, SlashDot.org! http://sdm.link/slashdot
_______________________________________________
Openvpn-devel mailing list
Openvpn-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/openvpn-devel

Reply via email to