diff options
Diffstat (limited to 'build-aux/xdrgen')
-rwxr-xr-x | build-aux/xdrgen | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/build-aux/xdrgen b/build-aux/xdrgen index c6dd5cc0340..a2240a235a2 100755 --- a/build-aux/xdrgen +++ b/build-aux/xdrgen @@ -22,10 +22,12 @@ append_licence_header () #if defined(__GNUC__) #if __GNUC__ >= 4 +#if !defined(__clang__) #pragma GCC diagnostic ignored "-Wunused-but-set-variable" #pragma GCC diagnostic ignored "-Wunused-variable" #endif #endif +#endif EOF @@ -67,7 +69,7 @@ gen_headers () rm -f $hfile; rpcgen -h -o $hfile $xfile; # the '#ifdef' part of file should be fixed - sed -e 's/-/_/g' $hfile > ${hfile}.new && mv ${hfile}.new $hfile; + sed -e 's/-/_/g' $hfile > ${hfile}.new && mv ${hfile}.new $hfile; # Gen header to temp file and append generated file append_licence_header $hfile $tmp_hfile; # now move the destination file to actual original file |