commit | 699805e9e7884dc016bb173230246e10058b62a0 | [log] [tgz] |
---|---|---|
author | Radek Krejci <rkrejci@cesnet.cz> | Tue May 26 14:45:17 2015 +0200 |
committer | Radek Krejci <rkrejci@cesnet.cz> | Tue May 26 14:45:17 2015 +0200 |
tree | 447f42187e8a54c1c9f9ce82915d3bce63917d72 | |
parent | 1e143adbe62d88d204d7e1610017dc8f0541e595 [diff] |
xml parser: BUGFIX: NULL check before dereferencing pointer
libyang is YANG data modelling language parser and toolkit written (and providing API) in C.
$ cmake . $ make # make install
There are two build modes:
The Debug mode is currently used as the default one. to switch to the
Release` mode, enter at the command line:
$ cmake -D CMAKE_BUILD_TYPE:String="Release" .
Set CC variable:
$ CC=/usr/bin/clang cmake .
Note that, with CMake, if you want to change the compiler or its options after you already ran CMake, you need to clear its cache first. For your convenience, this action is available as cclean
target of the Makefile:
$ make cclean $ CC=gcc CFLAGS='-fstack-protector-strong -Wa,--noexecstack' cmake .