Skip to content

Commit

Permalink
src/logger.c:7: warning: "_GNU_SOURCE" redefined
Browse files Browse the repository at this point in the history
Using gcc 8.4.0 throws this warning:

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

It's safe to conditinally define it.
  • Loading branch information
badevos committed Nov 6, 2023
1 parent 05e5a18 commit f20502e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/logger.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 <stdio.h>
Expand Down

0 comments on commit f20502e

Please sign in to comment.