Skip to content

Commit

Permalink
src/osdp_common.c: waring: _GNU_SOURCE redefined
Browse files Browse the repository at this point in the history
With gcc 8.4.0 the following warning was thrown:

src/osdp_common.c:7: warning: "_GNU_SOURCE" redefined
 #define _GNU_SOURCE  /* See feature_test_macros(7) */

As the application defines using _GNU_SOURCE or not it's safe to
conditionally set this macro
  • Loading branch information
badevos committed Nov 6, 2023
1 parent 3416e09 commit 7491610
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/osdp_common.c
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,9 @@
*
* SPDX-License-Identifier: Apache-2.0
*/

#ifndef _GNU_SOURCE
#define _GNU_SOURCE /* See feature_test_macros(7) */
#endif

#include <stdarg.h>
#include <stdlib.h>
Expand Down

0 comments on commit 7491610

Please sign in to comment.