]> localhost Git - SCSI2SD-V6.git/commitdiff
Fix warning about redefinition of _GNU_SOURCE
authorJonathan Wakely <github@kayari.org>
Thu, 18 Feb 2021 17:24:05 +0000 (17:24 +0000)
committerMichael McMaster <michael@codesrc.com>
Mon, 26 Apr 2021 10:58:59 +0000 (20:58 +1000)
G++ implicitly defines _GNU_SOURCE=1 so define it consistently to avoid
a warning about redefinition.

src/scsi2sd-util6/libzipper-1.0.4/port/strerror_gnu.cc

index d41eddb2c01a4c797b00c6fb146a789c1bee9669..036ad52fb93bf57b97d5239d00e0bfcb74c1c386 100644 (file)
@@ -15,7 +15,7 @@
 //     You should have received a copy of the GNU General Public License
 //     along with libzipper.  If not, see <http://www.gnu.org/licenses/>.
 
-#define _GNU_SOURCE
+#define _GNU_SOURCE 1
 
 #include "../strerror.hh"