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 7, 2023
1 parent 9afcb93 commit f8d6c71
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions src/osdp_common.c
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,6 @@
*
* SPDX-License-Identifier: Apache-2.0
*/

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

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

0 comments on commit f8d6c71

Please sign in to comment.