Changeset 1c893ae for libcfa/src


Ignore:
Timestamp:
Sep 20, 2022, 9:24:32 PM (2 years ago)
Author:
Peter A. Buhr <pabuhr@…>
Branches:
ADT, ast-experimental, master, pthread-emulation
Children:
dc56b9d
Parents:
79ae13d
Message:

add assert so compiler does not generate spurious warnings

File:
1 edited

Legend:

Unmodified
Added
Removed
  • libcfa/src/parseargs.cfa

    r79ae13d r1c893ae  
    55#include <errno.h>
    66#include <unistd.h>
     7#include <assert.h>
     8
    79extern "C" {
    810        #include <getopt.h>
     
    7274
    7375        int maxv = 'h';
     76        assert( opt_count > 0 );
    7477        char optstring[opt_count * 3] = { '\0' };
    7578        {
Note: See TracChangeset for help on using the changeset viewer.