Skip to content

Commit

Permalink
On s390/x and PPC64 gcc misses unused arg0
Browse files Browse the repository at this point in the history
Signed-off-by: Werner Fink <[email protected]>
  • Loading branch information
bitstreamout committed Dec 2, 2021
1 parent e295f4f commit fcb9e0c
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions blogger.c
Original file line number Diff line number Diff line change
Expand Up @@ -17,10 +17,14 @@
#include <unistd.h>
#include "libblogger.h"

volatile char *arg0;

int main(int argc, char * argv[])
{
int c, lvl = 'n';

arg0 = (volatile char*)argv[0];

while ((c = getopt(argc, argv, "ndfsu")) != -1) {
switch (c) {
case B_NOTICE:
Expand Down

0 comments on commit fcb9e0c

Please sign in to comment.